package lumecmd import ( "fmt" "runtime" ) func NewCmdVersion() Command { return Command{ Name: "version", Func: VersionCmd, Flags: nil, Use: "", Short: "Show version", } } func VersionCmd(args CmdArgs) (int, error) { fmt.Printf("lume %s\n", Version) fmt.Printf(" os/arch: %s/%s\n", runtime.GOOS, runtime.GOARCH) fmt.Printf(" go version: %s\n", runtime.Version()) return ExitSuccess, nil }