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
Usage: fmt.Sprintf("Do not prompt for confirmation to include dependencies. Has the same effect as --%s, without disabling variable prompts.", options.OptNonInteractive),
98
98
},
99
+
&cli.BoolFlag{
100
+
Name: options.OptSilent,
101
+
Usage: "Do not output any log messages",
102
+
},
99
103
}
100
104
101
105
// We pass JSON/YAML content to various CLI flags, such as --var, and this JSON/YAML content may contain commas or
util.Logger.Printf("Loading boilerplate config from %s", configPath)
179
+
opts.Logger.Info(fmt.Sprintf("Loading boilerplate config from %s", configPath))
180
180
bytes, err:=ioutil.ReadFile(configPath)
181
181
iferr!=nil {
182
182
returnnil, errors.WithStackTrace(err)
183
183
}
184
184
185
185
returnParseBoilerplateConfig(bytes)
186
186
} elseifopts.OnMissingConfig==options.Ignore {
187
-
util.Logger.Printf("Warning: boilerplate config file not found at %s. The %s flag is set, so ignoring. Note that no variables will be available while generating.", configPath, options.OptMissingConfigAction)
187
+
opts.Logger.Info(fmt.Sprintf("Warning: boilerplate config file not found at %s. The %s flag is set, so ignoring. Note that no variables will be available while generating.", configPath, options.OptMissingConfigAction))
188
188
return&BoilerplateConfig{}, nil
189
189
} else {
190
190
// If the template URL is similar to a git URL, surface in error message that there may be a misspelling/typo.
0 commit comments