Commit 5290f8fe
5290f8fe3d95Merged
Dmitriy Zhilyaev <[email protected]> · 2 years ago · 5 files · ~5 modified
Description
feat: refactor EnvVars for flags
Signed-off-by: Dmitriy Zhilyaev [email protected]
Details
- Commit
- 5290f8fe3d95
- Parent
- 370bddd1a3a8
pkg/action/build.gomodifiedView file
@@ -171,7 +171,7 @@
171171
Usage: "auto helmwave.yml.tpl --> helmwave.yml",172172
Value: false,173173
Category: "YML",174-
EnvVars: []string{"HELMWAVE_AUTO_YML", "HELMWAVE_AUTO_YAML"},174+
EnvVars: EnvVars("AUTO_YML", "AUTO_YAML"),175175
Destination: &i.autoYml,176176
},177177
&cli.StringFlag{@@ -179,7 +179,7 @@
179179
Usage: "go-getter URL to download build sources",180180
Value: "",181181
Category: "BUILD",182-
EnvVars: []string{"HELMWAVE_REMOTE_SOURCE"},182+
EnvVars: EnvVars("REMOTE_SOURCE"),183183
Destination: &i.remoteSource,184184
},185185
&cli.BoolFlag{@@ -187,7 +187,7 @@
187187
Usage: "evaluate releases dependencies and add them to the plan even if they don't match provided tags",188188
Value: true,189189
Category: Step1,190-
EnvVars: []string{"HELMWAVE_ENABLE_DEPENDENCIES"},190+
EnvVars: EnvVars("ENABLE_DEPENDENCIES"),191191
Destination: &i.options.EnableDependencies,192192
},193193
}pkg/action/diff.gomodifiedView file
Loading diff…
pkg/action/diff_local.gomodifiedView file
Loading diff…
pkg/action/flags.gomodifiedView file
Loading diff…
pkg/action/up.gomodifiedView file
Loading diff…