We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 699766e commit 7d9db28Copy full SHA for 7d9db28
2 files changed
docs/user_docs/cli/_category_.yml
hack/docgen/cli/main.go
@@ -97,6 +97,15 @@ func main() {
97
rootPath = os.Args[1]
98
}
99
100
+ // normalize and ensure output directory exists
101
+ rootPath = filepath.Clean(rootPath)
102
+
103
+ // 0o755 is an octal literal for Unix file permissions: rwxr-xr-x
104
+ // (owner can read/write/execute, group and others can read/execute)
105
+ if err := os.MkdirAll(rootPath, 0o755); err != nil {
106
+ log.Fatal(err)
107
+ }
108
109
fmt.Println("Scanning CLI docs rootPath: ", rootPath)
110
cli := cmd.NewCliCmd()
111
cli.Long = fmt.Sprintf("```\n%s\n```", cli.Long)
0 commit comments