Skip to content

Commit

Permalink
adding fix for nil map error
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasCarioca committed Oct 4, 2021
1 parent 1af4cca commit d19992b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d19992b

Please sign in to comment.