diff --git a/cmd/docs/main.go b/cmd/docs/main.go index eef7c62d..ececdd21 100644 --- a/cmd/docs/main.go +++ b/cmd/docs/main.go @@ -128,10 +128,6 @@ func mapCommandInfos(cmds []*cobra.Command) []CommandInfo { }) }) - if c.Short != "" { - infos = append(infos, info) - } - if c.HasSubCommands() { subInfos := mapCommandInfos(c.Commands()) for i := range subInfos { @@ -140,6 +136,8 @@ func mapCommandInfos(cmds []*cobra.Command) []CommandInfo { } infos = append(infos, subInfos...) + } else { + infos = append(infos, info) } } diff --git a/internal/cli/create.go b/internal/cli/create.go index 9f83a262..35a7719f 100644 --- a/internal/cli/create.go +++ b/internal/cli/create.go @@ -6,7 +6,9 @@ import ( func NewCreateCmd() *cobra.Command { var cmd = &cobra.Command{ - Use: "create", + Use: "create", + Short: "Create a new recipe, manifest or test", + Long: "Create a new recipe, manifest or test.", } cmd.AddCommand(