Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

johnstcn
Copy link
Member

@johnstcn johnstcn commented May 1, 2024

Adds CLI flags to auto-generated docs

@johnstcn johnstcn self-assigned this May 1, 2024
Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

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

👌

@@ -306,17 +307,25 @@ func (o *Options) CLI() serpent.OptionSet {

func (o *Options) Markdown() string {
cliOptions := o.CLI()
mkd := "| Environment variable | Default | Description |\n" +
"| - | - | - |\n"
var sb strings.Builder
Copy link
Contributor

Choose a reason for hiding this comment

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

TIL there a strings.Builder thing

@johnstcn johnstcn merged commit be72259 into main May 1, 2024
@johnstcn johnstcn deleted the cj/docs-flags branch May 1, 2024 13:44
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