Update command/root.go

Co-Authored-By: Corey Johnson <probablycorey@gmail.com>
This commit is contained in:
Nate Smith 2020-04-28 20:19:52 -05:00 committed by GitHub
parent 3aaa231cc5
commit fb7b5446d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,6 +151,7 @@ var apiClientForContext = func(ctx context.Context) (*api.Client, error) {
getAuthValue := func() string {
return fmt.Sprintf("token %s", token)
}
checkScopesFunc := func(appID string) error {
if config.IsGitHubApp(appID) && utils.IsTerminal(os.Stdin) && utils.IsTerminal(os.Stderr) {
newToken, loginHandle, err := config.AuthFlow("Notice: additional authorization required")