chore: no need to check flag when use a.log()
parent
6392d7ba4d
commit
146497ac8b
|
@ -52,9 +52,7 @@ func (a *action) getFlags(c *cli.Context) {
|
|||
a.flags.filetype = a.getFlagValue(c, filetypeFlag, defaultFiletype)
|
||||
a.flags.dryRun = c.Bool(dryRunFlag)
|
||||
|
||||
if a.flags.verbose {
|
||||
a.log("flags %+v", a.flags)
|
||||
}
|
||||
a.log("flags %+v", a.flags)
|
||||
}
|
||||
|
||||
func (a *action) getFlagValue(c *cli.Context, flag, fallback string) string {
|
||||
|
|
|
@ -83,6 +83,8 @@ func (a *action) getRealOutput() string {
|
|||
nameWithExt := a.flags.filename + "." + a.flags.filetype
|
||||
realOutput := filepath.Join(a.flags.output, nameWithExt)
|
||||
|
||||
a.log("real output %s", realOutput)
|
||||
|
||||
return realOutput
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue