From fd19cc5faf3967979b5b9fa975577b8e6381ba9c Mon Sep 17 00:00:00 2001 From: asoseil Date: Mon, 23 Oct 2017 14:32:42 +0200 Subject: [PATCH] version command --- realize.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/realize.go b/realize.go index f12df99..45a7722 100644 --- a/realize.go +++ b/realize.go @@ -14,7 +14,7 @@ import ( ) const ( - version = "1.5.0" + version = "1.5.1" ) // New realize instance @@ -111,7 +111,7 @@ func main() { { Name: "init", Category: "Configuration", - Aliases: []string{"a"}, + Aliases: []string{"i"}, Description: "Define a new config file with all options step by step", Action: func(p *cli.Context) (actErr error) { interact.Run(&interact.Interact{ @@ -1085,6 +1085,16 @@ func main() { }, Before: before, }, + { + Name: "version", + Aliases: []string{"v"}, + Description: "Realize version", + Action: func(p *cli.Context) error { + log.Println(prefix(green.bold(version))) + return nil + }, + Before: before, + }, }, } if err := app.Run(os.Args); err != nil {