Skip to content

Commit

Permalink
refactor: fix cli context var name
Browse files Browse the repository at this point in the history
  • Loading branch information
70sh1 committed Jul 6, 2024
1 parent 8b1bbb0 commit 4baa0ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eddy.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ func main() {
},
UseShortOptionHandling: true,
Suggest: true,
Before: func(ctx *cli.Context) error {
Before: func(cCtx *cli.Context) error {
// Remove date/time prefix from logger
log.SetFlags(0)
// Only logging errors with log.Fatal so this prefix is set
noEmojiAndColor := ctx.Bool("no-emoji")
noEmojiAndColor := cCtx.Bool("no-emoji")
logPrefix := "ERROR: "
if !noEmojiAndColor {
logPrefix = "❗ " + color.RedString(logPrefix)
Expand Down

0 comments on commit 4baa0ac

Please sign in to comment.