diff --git a/pkg/cmd/factory/http.go b/pkg/cmd/factory/http.go index 0514aecec..7a4ede424 100644 --- a/pkg/cmd/factory/http.go +++ b/pkg/cmd/factory/http.go @@ -31,7 +31,7 @@ func httpClient(io *iostreams.IOStreams, cfg config.Config, appVersion string, s token, err := cfg.Get(hostname, "oauth_token") if err != nil || token == "" { // Users shouldn't see this because of the pre-execute auth check on commands - return "", fmt.Errorf("authentication required for %s; please run `gh auth login -h%s", hostname, hostname) + return "", fmt.Errorf("authentication required for %s; please run `gh auth login -h %s", hostname, hostname) } return fmt.Sprintf("token %s", token), nil diff --git a/pkg/cmd/root/root.go b/pkg/cmd/root/root.go index 5511c8dd1..46ffbef33 100644 --- a/pkg/cmd/root/root.go +++ b/pkg/cmd/root/root.go @@ -98,7 +98,6 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) *cobra.Command { return &cmdutil.FlagError{Err: err} }) - // TODO does this make sense? I'd like people to be able to see usage without an auth message. cmdutil.DisableAuthCheck(cmd) // CHILD COMMANDS