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:
+5
-1
@@ -125,5 +125,9 @@ func read(path string) ([]byte, error) {
|
||||
}
|
||||
|
||||
func DefaultDir() string {
|
||||
return configdir.LocalConfig("coderv2")
|
||||
configDir := configdir.LocalConfig("coderv2")
|
||||
if dir := os.Getenv("CLIDOCGEN_CONFIG_DIRECTORY"); dir != "" {
|
||||
configDir = dir
|
||||
}
|
||||
return configDir
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user