From 5b9dae6e5bdf030cc86df82b39b3eb7246a6f124 Mon Sep 17 00:00:00 2001 From: Lucas Desouza Date: Sun, 3 Oct 2021 22:09:33 -0500 Subject: [PATCH] adding version command default --- cli/app.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/app.go b/cli/app.go index 2f6f736..5cb2231 100644 --- a/cli/app.go +++ b/cli/app.go @@ -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