lume/cmd/version.go

21 lines
277 B
Go
Raw Normal View History

2021-02-14 00:42:47 +00:00
package lumecmd
2021-02-28 04:42:09 +00:00
import (
"fmt"
)
func NewCmdVersion() Command {
return Command{
Name: "version",
Func: VersionCmd,
Flags: nil,
Use: "",
Short: "Show version",
}
}
func VersionCmd(args CmdArgs) (int, error) {
fmt.Println(Version)
return ExitSuccess, nil
}