Skip to content

Commit bff365b

Browse files
author
Ish Shah
committed
working file tree
1 parent cea6def commit bff365b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

hack/doc/gen-cli-doc.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
package main
1616

1717
import (
18+
"os"
19+
1820
"github.com/operator-framework/operator-sdk/cmd/operator-sdk/cli"
1921

2022
"github.com/spf13/cobra/doc"
@@ -24,8 +26,11 @@ import (
2426

2527
func main() {
2628
root := cli.GetCLIRoot()
27-
28-
err := doc.GenMarkdownTree(root, "../../doc")
29+
currentDir, err := os.Getwd()
30+
if err != nil {
31+
log.Fatalf("Failed to get current directory, (%v)", err)
32+
}
33+
err = doc.GenMarkdownTree(root, currentDir+"/doc/cli-docs")
2934
if err != nil {
3035
log.Fatalf("Failed to generate documenation, (%v)", err)
3136
}

0 commit comments

Comments
 (0)