Skip to content

Commit 1efd3eb

Browse files
committed
rebase strife
1 parent 2f1e9ec commit 1efd3eb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/cmd/auth/auth.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package auth
33
import (
44
authLoginCmd "github.com/cli/cli/pkg/cmd/auth/login"
55
authLogoutCmd "github.com/cli/cli/pkg/cmd/auth/logout"
6+
authRefreshCmd "github.com/cli/cli/pkg/cmd/auth/refresh"
67
authStatusCmd "github.com/cli/cli/pkg/cmd/auth/status"
78
"github.com/cli/cli/pkg/cmdutil"
89
"github.com/spf13/cobra"
@@ -18,6 +19,7 @@ func NewCmdAuth(f *cmdutil.Factory) *cobra.Command {
1819
cmd.AddCommand(authLoginCmd.NewCmdLogin(f, nil))
1920
cmd.AddCommand(authLogoutCmd.NewCmdLogout(f, nil))
2021
cmd.AddCommand(authStatusCmd.NewCmdStatus(f, nil))
22+
cmd.AddCommand(authRefreshCmd.NewCmdRefresh(f, nil))
2123

2224
return cmd
2325
}

pkg/cmd/factory/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func httpClient(io *iostreams.IOStreams, cfg config.Config, appVersion string, s
3535
// TODO: check if stdout is TTY too
3636
if errors.As(err, &notFound) && io.IsStdinTTY() {
3737
// interactive OAuth flow
38-
token, err = config.AuthFlowWithConfig(cfg, hostname, "Notice: authentication required")
38+
token, err = config.AuthFlowWithConfig(cfg, hostname, "Notice: authentication required", nil)
3939
}
4040
if err != nil {
4141
return "", err

0 commit comments

Comments
 (0)