From bfde701922b4456c341fb4339da6dbb309609efc Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sat, 14 Feb 2026 23:24:37 +0100 Subject: [PATCH] fix: handle input with several words --- internal/shell/shell.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/internal/shell/shell.go b/internal/shell/shell.go index 4fdce30..bac6e1d 100644 --- a/internal/shell/shell.go +++ b/internal/shell/shell.go @@ -52,7 +52,17 @@ func (s *Shell) Run(action string, args cli.Args) error { s.Order, ) - input := strings.Trim(args.Get(0), " ") + var inputs []string + + for i := 0; i < args.Len(); i++ { + arg := strings.Trim(args.Get(i), " \t\t\n") + + if arg != "" { + inputs = append(inputs, arg) + } + } + + input := strings.Join(inputs, " ") switch input { case "":