From 15b1e269ade91ddc6a74c552bc61b0c5e527d268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 9 Apr 2018 20:05:09 +0200 Subject: comands: Make the config command non-global See #4598 --- commands/version.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'commands/version.go') 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) -- cgit v1.2.3