Skip to content

Commit

Permalink
adding version command default
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasCarioca committed Oct 4, 2021
1 parent 261fbae commit 5b9dae6
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 @@ -12,7 +12,9 @@ type AppInterface interface {

func NewApp(defaultCommand Command) AppInterface {
app := &App{
commands: map[string]Command{},
commands: map[string]Command{
"version": &VersionCommand{},
},
}
app.AddCommand("default", defaultCommand)
return app
Expand Down

0 comments on commit 5b9dae6

Please sign in to comment.