docs: Add generated argocd command docs (#4606)

This commit is contained in:
William Tam
2020-10-19 20:30:32 -04:00
committed by GitHub
parent 90227f226d
commit 894f95dce5
105 changed files with 4799 additions and 28 deletions

20
tools/cmd-docs/main.go Normal file
View File

@@ -0,0 +1,20 @@
package main
import (
"log"
"os"
"github.com/argoproj/argo-cd/cmd/argocd/commands"
"github.com/spf13/cobra/doc"
)
func main() {
// set HOME env var so that default values involve user's home directory do not depend on the running user.
os.Setenv("HOME", "/home/user")
err := doc.GenMarkdownTree(commands.NewCommand(), "./docs/user-guide/commands")
if err != nil {
log.Fatal(err)
}
}