feat: add version command
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c9ba7aef20
commit
7b2100c568
2
TODO.md
2
TODO.md
@ -35,7 +35,7 @@ Disclaimer!: List is WIP
|
||||
- [ ] `release`
|
||||
- [ ] `versions`
|
||||
- [ ] `abra upgrade`
|
||||
- [ ] `version`
|
||||
- [x] `version`
|
||||
- [ ] `doctor`
|
||||
- [ ] Refactor code and good comments
|
||||
- [ ] Automated builds and releases (for all OS's and archs)
|
||||
|
@ -29,6 +29,7 @@ func RunApp(version, commit string) {
|
||||
},
|
||||
},
|
||||
},
|
||||
VersionCommand,
|
||||
},
|
||||
Flags: []cli.Flag{
|
||||
EnvFlag,
|
||||
|
14
cli/version.go
Normal file
14
cli/version.go
Normal file
@ -0,0 +1,14 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
var VersionCommand = &cli.Command{
|
||||
Name: "version",
|
||||
Usage: "Print the version",
|
||||
Action: func(c *cli.Context) error {
|
||||
cli.VersionPrinter(c)
|
||||
return nil
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user