mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: clidocgen: generate consistent docs (#7047)
* chore: clidocgen: ensure same generated docs * fix
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user