From 8f5dc676976bb7f2cade850e1372aa781825611b Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Tue, 2 Jun 2020 20:10:00 -0800 Subject: [PATCH] Fix bug with shellquote --- djpianalto.com/goff/exts/tags.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/djpianalto.com/goff/exts/tags.go b/djpianalto.com/goff/exts/tags.go index 261e8d6..4a55771 100644 --- a/djpianalto.com/goff/exts/tags.go +++ b/djpianalto.com/goff/exts/tags.go @@ -11,10 +11,9 @@ import ( "github.com/kballard/go-shellquote" ) -func addTagCommand(ctx disgoman.Context, args []string) { - if len(args) >= 1 { - fmt.Println(args) - args, err := shellquote.Split(strings.Join(args, " ")) +func addTagCommand(ctx disgoman.Context, input []string) { + if len(input) >= 1 { + args, err := shellquote.Split(strings.Join(input, " ")) if err != nil { if strings.Contains(err.Error(), "Unterminated") { args = strings.SplitN(strings.Join(args, " "), " ", 2)