diff --git a/cmd/docs/docs.go b/cmd/docs/docs.go index 11a8d8e..84c569a 100644 --- a/cmd/docs/docs.go +++ b/cmd/docs/docs.go @@ -51,7 +51,8 @@ func NewDocsCommand() *cobra.Command { // Generate markdown documentation fmt.Printf("Generating documentation in %s...\n", opts.path) - err = doc.GenMarkdownTree(cmd, opts.path) + + err = doc.GenMarkdownTree(cmd.Parent().Root(), opts.path) if err != nil { return err }