spf13--cobra/site/content/docgen/_index.md

22 lines
466 B
Markdown
Raw Normal View History

2020-10-04 23:00:12 +00:00
---
weight: 20
---
# Documentation generation
- [Man page docs](man.md)
- [Markdown docs](md.md)
- [Rest docs](rest.md)
- [Yaml docs](yaml.md)
## Options
2020-10-04 23:00:12 +00:00
### `DisableAutoGenTag`
2020-10-04 23:00:12 +00:00
You may set `cmd.DisableAutoGenTag = true` to _entirely_ remove the auto generated string
"Auto generated by spf13/cobra..." from any documentation source.
### `InitDefaultCompletionCmd`
You may call `cmd.InitDefaultCompletionCmd()` to document the default autocompletion command.