From 4baa0ac0e0a61b51d392b4db743cd84c0ba4a7c8 Mon Sep 17 00:00:00 2001 From: 70sh1 <70sh1@proton.me> Date: Sat, 6 Jul 2024 03:31:55 +0300 Subject: [PATCH] refactor: fix cli context var name --- eddy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eddy.go b/eddy.go index bcdfcba..095cecf 100644 --- a/eddy.go +++ b/eddy.go @@ -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)