cobra
cobra copied to clipboard
Add a COMMANDS section to generated man pages
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
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.
Hi @johnSchnake Thanks for you curation work.
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?
@orobardet see https://github.com/spf13/cobra/blob/master/MAINTAINERS#L2-L5