Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions docs/user_docs/cli/_category_.yml

This file was deleted.

9 changes: 9 additions & 0 deletions hack/docgen/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ func main() {
rootPath = os.Args[1]
}

// normalize and ensure output directory exists
rootPath = filepath.Clean(rootPath)

// 0o755 is an octal literal for Unix file permissions: rwxr-xr-x
// (owner can read/write/execute, group and others can read/execute)
if err := os.MkdirAll(rootPath, 0o755); err != nil {
log.Fatal(err)
}

fmt.Println("Scanning CLI docs rootPath: ", rootPath)
cli := cmd.NewCliCmd()
cli.Long = fmt.Sprintf("```\n%s\n```", cli.Long)
Expand Down
Loading