Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support output format options #49

Merged
merged 1 commit into from
Sep 7, 2018
Merged

Support output format options #49

merged 1 commit into from
Sep 7, 2018

Conversation

shinfan
Copy link
Collaborator

@shinfan shinfan commented Aug 30, 2018

  • Support bear/pretty/json/json_compact/header
  • Make FindJSONCredentials in sgauth visible so it can be leveraged by oauth2l

- Support bear/pretty/json/json_compact/header
@shinfan shinfan requested review from bochunz and wora and removed request for bochunz August 30, 2018 22:44
@wora
Copy link
Contributor

wora commented Aug 30, 2018

@bochunz Can you please review this?

@@ -36,5 +36,9 @@ func SSOFetch(email string, cli string, task string, scope string) {
if err != nil {
fmt.Println(err)
}
PrintToken("Bearer", out.String(), task == "header")
if task == "header" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not call printToken from here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

printToken() now takes sgauth.Token* type

Copy link
Contributor

@bochunz bochunz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shinfan shinfan merged commit b1025ee into google:master Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants