Don't output hidden commands for man pages
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
249cb33392
commit
487be14dce
3
docs.go
3
docs.go
@ -57,6 +57,9 @@ func prepareCommands(commands []Command, level int) []string {
|
|||||||
coms := []string{}
|
coms := []string{}
|
||||||
for i := range commands {
|
for i := range commands {
|
||||||
command := &commands[i]
|
command := &commands[i]
|
||||||
|
if command.Hidden {
|
||||||
|
continue
|
||||||
|
}
|
||||||
usage := ""
|
usage := ""
|
||||||
if command.Usage != "" {
|
if command.Usage != "" {
|
||||||
usage = command.Usage
|
usage = command.Usage
|
||||||
|
Loading…
Reference in New Issue
Block a user