Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): Include Description and UsageText in docs output (#1287)
Include Description as part of the DESCRIPTION section, and put UsageText (if it is non-zero) into the Usage subsection.
- Loading branch information
Showing
8 changed files
with
116 additions
and
14 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
% greet 8 | ||
|
||
# NAME | ||
|
||
greet - Some app | ||
|
||
# SYNOPSIS | ||
|
||
greet | ||
|
||
``` | ||
[--another-flag|-b] | ||
[--flag|--fl|-f]=[value] | ||
[--socket|-s]=[value] | ||
``` | ||
|
||
# DESCRIPTION | ||
|
||
Description of the application. | ||
|
||
**Usage**: | ||
|
||
``` | ||
greet [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...] | ||
``` | ||
|
||
# GLOBAL OPTIONS | ||
|
||
**--another-flag, -b**: another usage text | ||
|
||
**--flag, --fl, -f**="": | ||
|
||
**--socket, -s**="": some 'usage' text (default: value) | ||
|
||
|
||
# COMMANDS | ||
|
||
## config, c | ||
|
||
another usage test | ||
|
||
**--another-flag, -b**: another usage text | ||
|
||
**--flag, --fl, -f**="": | ||
|
||
### sub-config, s, ss | ||
|
||
another usage test | ||
|
||
**--sub-command-flag, -s**: some usage text | ||
|
||
**--sub-flag, --sub-fl, -s**="": | ||
|
||
## info, i, in | ||
|
||
retrieve generic information | ||
|
||
## some-command | ||
|
||
|
||
## usage, u | ||
|
||
standard usage text | ||
|
||
Usage for the usage text | ||
- formatted: Based on the specified ConfigMap and summon secrets.yml | ||
- list: Inspect the environment for a specific process running on a Pod | ||
- for_effect: Compare 'namespace' environment with 'local' | ||
|
||
``` | ||
func() { ... } | ||
``` | ||
|
||
Should be a part of the same code block | ||
|
||
**--another-flag, -b**: another usage text | ||
|
||
**--flag, --fl, -f**="": | ||
|
||
### sub-usage, su | ||
|
||
standard usage text | ||
|
||
>Single line of UsageText | ||
**--sub-command-flag, -s**: some usage text |