some code change

fix wrong required flags

disable the addition of [flags] to the usage, use customized useline

fix function rename
This commit is contained in:
Di Xu
2017-10-11 14:26:02 +08:00
parent 6c54ec59ee
commit 1c715d51c4
80 changed files with 235 additions and 122 deletions

View File

@@ -27,7 +27,7 @@ import (
// MarkdownPostProcessing goes though the generated files
func MarkdownPostProcessing(cmd *cobra.Command, dir string, processor func(string) string) error {
for _, c := range cmd.Commands() {
if !c.IsAvailableCommand() || c.IsHelpCommand() {
if !c.IsAvailableCommand() || c.IsAdditionalHelpTopicCommand() {
continue
}
if err := MarkdownPostProcessing(c, dir, processor); err != nil {