-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PR Integration] Use
display_name
wherever possible + table of cont…
…ents option (#27) clap-markdown will now use the `Command.display_name` property if set to render the name of the command in the title, command section name, and usage messages. A new `MarkdownOptions.show_table_of_contents()` control has also been added, so users can choose to omit the generated table of contents if desired. * prefer use display name wherever possible * refactoring + use display name then fallback to bin name then to package name * extract the function to a util * move util fn downstairs * simplify the utility function * integration: Update new tests after rebase * integration: Move match out of write!(..) call * integration: Make comment into doc comment + add detail about Command.name * integation+bugfix: Fix regression, document title missing `..` * integration: Update CHANGELOG.md --------- Co-authored-by: Connor Gray <[email protected]> Co-authored-by: Laurynas Keturakis <[email protected]> Co-authored-by: Benno van den Berg <[email protected]>
- Loading branch information
1 parent
8a60dbd
commit 2318d55
Showing
5 changed files
with
70 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters