From 8c8a1ab7b41fa026189cec8d1f77e2e89c696d11 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Fri, 18 Feb 2022 21:04:14 +0100 Subject: [PATCH] fix: use correct dir for clidoc --- cmd/clidoc/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/clidoc/main.go b/cmd/clidoc/main.go index e443d5bed1f0..9724f8b33e36 100644 --- a/cmd/clidoc/main.go +++ b/cmd/clidoc/main.go @@ -119,7 +119,7 @@ func init() { } func main() { - if err := clidoc.Generate(cmd.NewRootCmd(), os.Args[2:]); err != nil { + if err := clidoc.Generate(cmd.NewRootCmd(), []string{filepath.Join(os.Args[2], "cli")}); err != nil { _, _ = fmt.Fprintf(os.Stderr, "Unable to generate CLI docs: %+v", err) os.Exit(1) }