You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd.Flags().StringVar(&opts.Region, "region", opts.Region, "The name of the region to explain in.")
39
38
cmd.Flags().StringVar(&opts.Ev2Cloud, "ev2-cloud", opts.Ev2Cloud, "Cloud to use for Ev2 configuration, useful for dev mode explanations.")
40
39
cmd.Flags().StringVar(&opts.RegionShortSuffix, "region-short-suffix", opts.RegionShortSuffix, "Suffix to use for region short-name, useful for dev mode explanations.")
41
-
cmd.Flags().IntVar(&opts.Stamp, "stamp", opts.Stamp, "Stamp value to use, useful for dev mode explanations.")
40
+
cmd.Flags().StringVar(&opts.Stamp, "stamp", opts.Stamp, "Stamp value to use, useful for dev mode explanations.")
42
41
43
42
cmd.Flags().StringVar(&opts.Path, "path", opts.Path, "Path to the value needing explanation.")
cmd.Flags().StringVar(&opts.Output, "output", opts.Output, "Output file to render to. Set to '-' for stdout.")
48
49
cmd.Flags().StringVar(&opts.Ev2Cloud, "ev2-cloud", opts.Ev2Cloud, "Cloud to use for Ev2 configuration, useful for dev mode rendering.")
49
50
cmd.Flags().StringVar(&opts.RegionShortSuffix, "region-short-suffix", opts.RegionShortSuffix, "Suffix to use for region short-name, useful for dev mode rendering.")
50
-
cmd.Flags().IntVar(&opts.Stamp, "stamp", opts.Stamp, "Stamp value to use, useful for dev mode rendering.")
51
+
cmd.Flags().StringVar(&opts.Stamp, "stamp", opts.Stamp, "Stamp value to use, useful for dev mode rendering.")
51
52
cmd.Flags().BoolVar(&opts.SkipSchemaValidation, "skip-schema-validation", opts.SkipSchemaValidation, "Skip JSON schema validation of the rendered config.")
53
+
cmd.Flags().StringVar(&opts.DevSettingsFile, "dev-settings-file", opts.DevSettingsFile, "File to load environment details from. Uses --cloud and --environment to resolve defaults.")
52
54
53
55
for_, flag:=range []string{
54
56
"service-config-file",
55
57
"config-file-override",
58
+
"dev-settings-file",
56
59
} {
57
60
iferr:=cmd.MarkFlagFilename(flag); err!=nil {
58
61
returnfmt.Errorf("failed to mark flag %q as a file: %w", flag, err)
@@ -71,9 +74,11 @@ type RawOptions struct {
71
74
Ev2Cloudstring
72
75
RegionShortOverridestring
73
76
RegionShortSuffixstring
74
-
Stampint
77
+
Stampstring
75
78
Outputstring
76
79
SkipSchemaValidationbool
80
+
81
+
DevSettingsFilestring
77
82
}
78
83
79
84
// validatedOptions is a private wrapper that enforces a call of Validate() before Complete() can be invoked.
0 commit comments