21 lines
277 B
Go
21 lines
277 B
Go
package lumecmd
|
|
|
|
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
|
|
}
|