From 10ffda0fea9ae66f89f81495c103d9a79140491b Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Thu, 5 Sep 2024 11:54:29 -0400 Subject: [PATCH] now docs are generated from the root command --- cmd/docs/docs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }