Updated verbose flag

This commit is contained in:
notzippy@gmail.com
2022-04-12 08:30:29 -07:00
parent 6dba0c3d2d
commit 1cdd318d9c
3 changed files with 12 additions and 3 deletions

View File

@@ -301,6 +301,14 @@ func (c *CommandConfig) initGoPaths() {
*/
}
// Sets the versions on the command config.
func (c *CommandConfig) GetVerbose() (verbose bool) {
if len(c.Verbose) > 0 {
verbose = c.Verbose[0]
}
return
}
// Sets the versions on the command config.
func (c *CommandConfig) SetVersions() (err error) {
c.CommandVersion, _ = ParseVersion(cmd.Version)