-
Notifications
You must be signed in to change notification settings - Fork 611
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
Examine that docs/command-reference.md
has all the flags
#3647
Comments
/assign |
@AkihiroSuda when exactly should this be autogenerated? on a new release? or when a new command is merged to main? |
Probably latter |
Well I can think of only two ways in which we can enforce this, first is, to somehow add this as a test in the github pipeline so that whenever there is a new pr for a command, the author is prompted to also update the docs for it, or we take the code and feed into some ai model that can generate the documentation accordingly. But the second option could lead to many mistakes and also would be a pretty cumbersome process. |
https://pkg.go.dev/github.com/spf13/pflag#FlagSet.SetAnnotation should be used to annotate flag descriptions. These descriptions should not be shown in |
annotating flag descriptions with this library is not a good idea because these annotations do not show up when the help command is called. So we will need to have both descriptions and annotations for a flag, or I can just compile the descriptions using the make command and generate the md file with that. |
https://github.com/containerd/nerdctl/blob/main/docs/command-reference.md
Missing:
nerdctl run --log-driver=none
...
Ideally this document should be auto-generated
The text was updated successfully, but these errors were encountered: