Skip to content

fix: remove irrelevant help info from coder tokens create #7135

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

Merged
merged 1 commit into from
Apr 14, 2023
Merged

Conversation

kylecarbs
Copy link
Member

The additional text didn't help much, and made it much harder to script around.

@kylecarbs kylecarbs requested a review from mafredri April 14, 2023 14:25
@kylecarbs kylecarbs self-assigned this Apr 14, 2023
cli/tokens.go Outdated
cliui.Infof(inv.Stdout,
"You can use this token by setting the --%s CLI flag, the %s environment variable, or the %q HTTP header.", varToken, envSessionToken, codersdk.SessionTokenHeader,
)
cliui.Infof(inv.Stdout, res.Key)
Copy link
Member

Choose a reason for hiding this comment

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

Since we don't want any type of formatting, a fmt.Fprint might work here too. Infof could line-split (I think, but probably only if there are spaces).

Copy link
Member Author

Choose a reason for hiding this comment

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

Ahh, I see! Will change.

The additional text didn't help much, and made it much harder to script around.
@kylecarbs kylecarbs merged commit 7f12020 into main Apr 14, 2023
@kylecarbs kylecarbs deleted the rawtokens branch April 14, 2023 17:18
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants