Skip to content

fix: Standardize and wrap example descriptions at 80 chars #2894

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 2 commits into from
Jul 11, 2022

Conversation

mafredri
Copy link
Member

The output of coder port-forward --help was used as a reference output format, the rest followed (and can all now be changed in one place).

This change is related to #2363.

@mafredri mafredri self-assigned this Jul 11, 2022
@mafredri mafredri requested a review from a team July 11, 2022 13:52

// formatExamples formats the exampels as width wrapped bulletpoint
// descriptions with the command underneath.
func formatExamples(examples ...example) string {
Copy link
Member

Choose a reason for hiding this comment

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

Neat way to do this. Much better than hoping the visual display is correct!

@mafredri mafredri merged commit 749694b into main Jul 11, 2022
@mafredri mafredri deleted the mafredri/cli-standardize-example-output branch July 11, 2022 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants