chore: clidocgen: generate consistent docs (#7047)

* chore: clidocgen: ensure same generated docs

* fix
This commit is contained in:
Marcin Tojek
2023-04-07 18:32:06 +02:00
committed by GitHub
parent 0347231bb8
commit 3e250c6609
3 changed files with 21 additions and 4 deletions
+3 -1
View File
@@ -348,7 +348,9 @@ func DefaultCacheDir() string {
// For compatibility with systemd.
defaultCacheDir = dir
}
if dir := os.Getenv("CLIDOCGEN_CACHE_DIRECTORY"); dir != "" {
defaultCacheDir = dir
}
return filepath.Join(defaultCacheDir, "coder")
}