mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
@@ -29,6 +29,10 @@ type versionCmd struct {
|
||||
cmd *cobra.Command
|
||||
}
|
||||
|
||||
func (c *versionCmd) getCommand() *cobra.Command {
|
||||
return c.cmd
|
||||
}
|
||||
|
||||
func newVersionCmd() *versionCmd {
|
||||
return &versionCmd{
|
||||
&cobra.Command{
|
||||
@@ -43,10 +47,6 @@ func newVersionCmd() *versionCmd {
|
||||
}
|
||||
}
|
||||
|
||||
func (c *versionCmd) getCommand() *cobra.Command {
|
||||
return c.cmd
|
||||
}
|
||||
|
||||
func printHugoVersion() {
|
||||
if hugolib.CommitHash == "" {
|
||||
jww.FEEDBACK.Printf("Hugo Static Site Generator v%s %s/%s BuildDate: %s\n", helpers.CurrentHugoVersion, runtime.GOOS, runtime.GOARCH, hugolib.BuildDate)
|
||||
|
Reference in New Issue
Block a user