支持环境变量覆盖运行配置

This commit is contained in:
xuans committed 2026-08-30 21:01:35 +08:00
1 parent 8ba644d7b3
commit fc2397935b
5 files changed
+148 -2

No files matched your search

+1 -1
View File
@@ -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 != "" {