Add build date to LDFLAGS
This commit is contained in:
@ -30,6 +30,7 @@ func init() {
|
||||
}
|
||||
|
||||
var Version string = "0.1.0-pre"
|
||||
var BuildDate string
|
||||
|
||||
const lumercFile string = ".lumerc"
|
||||
|
||||
|
@ -19,5 +19,8 @@ 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())
|
||||
if BuildDate != "" {
|
||||
fmt.Printf(" build date: %s\n", BuildDate)
|
||||
}
|
||||
return ExitSuccess, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user