We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 642cbc1 commit e3e47e8Copy full SHA for e3e47e8
hack/gendocs/main.go
@@ -5,12 +5,16 @@ package main
5
6
import (
7
"log"
8
+ "os"
9
10
oms "github.com/codesphere-cloud/oms/cli/cmd"
11
"github.com/spf13/cobra/doc"
12
)
13
14
func main() {
15
+ // to ensure the stable binary name is used and not the temporary path
16
+ os.Args[0] = "oms"
17
+
18
err := doc.GenMarkdownTree(oms.GetRootCmd(), "docs")
19
if err != nil {
20
log.Fatal(err)
0 commit comments