Skip to content

Commit

Permalink
disabled auto generation of Cobra tail end in markdown
Browse files Browse the repository at this point in the history
Co-authored-by: John McBride <[email protected]>
  • Loading branch information
nickytonline and jpmcb authored Sep 5, 2024
1 parent e54f774 commit 37103e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ func NewDocsCommand() *cobra.Command {
Short: "Generates the documentation for the CLI",
Args: cobra.MaximumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
cmd.DisableAutoGenTag = true

// Use default path if no argument is provided
if len(args) == 0 {
opts.path = DefaultPath
Expand Down

0 comments on commit 37103e4

Please sign in to comment.