From de93716b20ba33b2eb546080afc867edc3f70165 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Tue, 30 Mar 2021 13:33:36 -0500 Subject: [PATCH] Fix context variable name --- cmd/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index b9485e3..4365d96 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -68,7 +68,7 @@ func Main(args []string) (int, error) { lifx.WithDebug(debugFlag), ) - Context := Context{ + ctx := Context{ Client: c, Config: *config, Args: args[i:], @@ -83,11 +83,11 @@ func Main(args []string) (int, error) { fs := cmd.Flags if fs != nil { fs.Parse(args[i:]) - Context.Flags = Flags{FlagSet: fs} + ctx.Flags = Flags{FlagSet: fs} } - Context.Name = command + ctx.Name = command - exitCode, err := cmd.Func(Context) + exitCode, err := cmd.Func(ctx) if err != nil { err = fmt.Errorf("fatal: %s", err) }