diff options
Diffstat (limited to 'commands/version.go')
-rw-r--r-- | commands/version.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/version.go b/commands/version.go index 978a5440d..4498c3611 100644 --- a/commands/version.go +++ b/commands/version.go @@ -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) |