支持环境变量覆盖运行配置
This commit is contained in:
1 parent
8ba644d7b3
commit
fc2397935b
5 files changed
+148
-2
No files matched your search
@@ -855,7 +855,7 @@ func printJSON(cmd *cobra.Command, value any) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func loadConfig() (config.Config, error) { return config.Load(resolveConfigPath()) }
|
||||
func loadConfig() (config.Config, error) { return config.LoadWithEnv(resolveConfigPath()) }
|
||||
|
||||
func resolveConfigPath() string {
|
||||
if configPath != "" {
|
||||
|
||||
Reference in new issue
Block a user