fix: fix empty command name (#1106)

This commit is contained in:
Daniel Pham authored and GitHub committed 2020-10-05 09:52:27 +02:00
1 parent ad99bf1801
commit 36fb9f562a
3 files changed
+15 -5

No files matched your search

+1 -2
View File
@@ -2,7 +2,6 @@ package cmd
import (
"fmt"
"strings"
"github.com/spf13/cobra"
@@ -32,7 +31,7 @@ override the options.`,
s := &settings.Settings{
Key: generateKey(),
Signup: mustGetBool(flags, "signup"),
Shell: strings.Split(strings.TrimSpace(mustGetString(flags, "shell")), " "),
Shell: convertCmdStrToCmdArray(mustGetString(flags, "shell")),
AuthMethod: authMethod,
Defaults: defaults,
Branding: settings.Branding{