version command
This commit is contained in:
parent
61d9efe90f
commit
fd19cc5faf
14
realize.go
14
realize.go
@ -14,7 +14,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
version = "1.5.0"
|
version = "1.5.1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// New realize instance
|
// New realize instance
|
||||||
@ -111,7 +111,7 @@ func main() {
|
|||||||
{
|
{
|
||||||
Name: "init",
|
Name: "init",
|
||||||
Category: "Configuration",
|
Category: "Configuration",
|
||||||
Aliases: []string{"a"},
|
Aliases: []string{"i"},
|
||||||
Description: "Define a new config file with all options step by step",
|
Description: "Define a new config file with all options step by step",
|
||||||
Action: func(p *cli.Context) (actErr error) {
|
Action: func(p *cli.Context) (actErr error) {
|
||||||
interact.Run(&interact.Interact{
|
interact.Run(&interact.Interact{
|
||||||
@ -1085,6 +1085,16 @@ func main() {
|
|||||||
},
|
},
|
||||||
Before: before,
|
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 {
|
if err := app.Run(os.Args); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user