From d19992b726e9bdccc422ceb43e1c4f57ff99cd22 Mon Sep 17 00:00:00 2001 From: Lucas Desouza Date: Sun, 3 Oct 2021 22:02:59 -0500 Subject: [PATCH] adding fix for nil map error --- cli/app.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/app.go b/cli/app.go index 0d0537b..c040e8f 100644 --- a/cli/app.go +++ b/cli/app.go @@ -11,7 +11,9 @@ type AppInterface interface { } func NewApp(defaultCommand Command) AppInterface { - app := &App{} + app := &App{ + commands: map[string]Command{}, + } app.AddCommand("default", defaultCommand) return app }