feat: Support XDG Base directory standard (#7638) (#7791)

* feat: support XDG Base directory standard

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>

* chore: set XDG_CONFIG_HOME env var for docs generation

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>

* chore: regenerate cli docs

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Márk Sági-Kazár
2022-01-12 09:05:01 +01:00
committed by GitHub
parent c8bcabeba5
commit 57e0ffceb7
142 changed files with 173 additions and 141 deletions

View File

@@ -16,6 +16,7 @@ import (
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")
os.Setenv("XDG_CONFIG_HOME", "/home/user/.config")
err := doc.GenMarkdownTree(argocdcli.NewCommand(), "./docs/user-guide/commands")
if err != nil {