Skip to content

Commit

Permalink
log enabled flags
Browse files Browse the repository at this point in the history
  • Loading branch information
markusressel committed Dec 17, 2024
1 parent 4bdccb3 commit da1c771
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,17 @@ func init() {

func setupUi() {
ui.SetDebugEnabled(global.Verbose)
if global.Verbose {
pterm.Info.Println("Verbose output enabled")
}

if global.NoColor {
pterm.DisableColor()
pterm.Info.Println("Color output disabled")
}
if global.NoStyle {
pterm.DisableStyling()
pterm.Info.Println("Styled output disabled")
}
}

Expand Down

0 comments on commit da1c771

Please sign in to comment.