refactor: converted more fmt.Printf to log.*

This commit is contained in:
David Allen 2024-12-04 15:48:45 -07:00
parent 31d14bcc53
commit 0569c33633
Signed by: towk
GPG key ID: 793B2924A49B3A3F

View file

@ -36,7 +36,7 @@ var generateCmd = &cobra.Command{
} else {
// TODO: try and fetch token first if it is needed
if verbose {
fmt.Printf("No token found. Attempting to generate conf without one...\n")
log.Warn().Msg("No token found. Attempting to generate conf without one...\n")
}
}
}
@ -61,7 +61,7 @@ var generateCmd = &cobra.Command{
RunTargets(&conf, args, targets...)
} else {
if pluginPath == "" {
fmt.Printf("no plugin path specified")
log.Error().Msg("no plugin path specified")
return
}