1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-12-11 17:00:02 +01:00
gojekyll/commands/version.go
2017-08-14 15:23:00 -04:00

19 lines
368 B
Go

package commands
import (
"fmt"
"github.com/osteele/gojekyll/version"
)
var versionCmd = app.Command("version", "Print the name and version")
func versionCommand() error {
var d string
if !version.BuildTime.IsZero() {
d = version.BuildTime.Format(" (Build time: 2006-01-02T15:04)")
}
fmt.Printf("gojekyll version %s%s\n", version.Version, d)
return nil
}