fix: fix empty command name (#1106)

This commit is contained in:
Daniel Pham
2020-10-05 00:52:27 -07:00
committed by GitHub
parent ad99bf1801
commit 36fb9f562a
3 changed files with 15 additions and 5 deletions

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{