Skip to content

Commit e3e47e8

Browse files
fix: prevent temp path in docs
1 parent 642cbc1 commit e3e47e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hack/gendocs/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ package main
55

66
import (
77
"log"
8+
"os"
89

910
oms "github.com/codesphere-cloud/oms/cli/cmd"
1011
"github.com/spf13/cobra/doc"
1112
)
1213

1314
func main() {
15+
// to ensure the stable binary name is used and not the temporary path
16+
os.Args[0] = "oms"
17+
1418
err := doc.GenMarkdownTree(oms.GetRootCmd(), "docs")
1519
if err != nil {
1620
log.Fatal(err)

0 commit comments

Comments
 (0)