-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Add a COMMANDS section to generated man pages #939
base: main
Are you sure you want to change the base?
Conversation
65614da
to
cfa3fa1
Compare
I finished working on this PR, it's ready to be reviewed. |
This PR is being marked as stale due to a long period of inactivity |
Is there anything to do or change to help on this PR? |
cc @jharshman |
Would need fixed up to use a StringWriter instead of the bytes.Buffer. Untagged the issue as stale and mentioned it with maintainers to see if others want to see this merged. |
cfa3fa1
to
28b69df
Compare
9a6f197
to
94cc3e9
Compare
Hi @johnSchnake I just pushed an update rebased on the latest master, and using StringWriter. Which maintainer do I need to mention to have a look on this PR? |
When a command has available sub-commands, the COMMANDS man section is generated with the list of sub-commands, with their name, short description, and the name of the dedicated man page.
94cc3e9
to
98e8c71
Compare
When a command has available sub-commands, the COMMANDS man section is generated with the list of sub-commands, with their name, short description, and the name of the dedicated man page. Merge spf13/cobra#939 Fixes spf13/cobra#680
This PR enhance the man generation with the ability to add a COMMANDS section in generated man page for sub-commands.
When a command has available sub-commands, the COMMANDS
man section is generated with the list of sub-commands, with
their name, short description, and the name of the dedicated
man page.
This fixes #680