summaryrefslogtreecommitdiffstats
path: root/commands/env.go
diff options
context:
space:
mode:
authorbogem <albertnigma@gmail.com>2016-11-22 18:47:20 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-22 22:06:48 +0100
commit120f6b0cf20dfc977f33e650530d866e28e52a28 (patch)
tree232ebeb1e3b3b7e356c352d6febb268e69d1059d /commands/env.go
parente1da7cb3204c6d232f4a1bdbf89ce75d8459a8b8 (diff)
all: Use jww instead of fmt for printing
This is an attempt to unify method for printing.
Diffstat (limited to 'commands/env.go')
-rw-r--r--commands/env.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/env.go b/commands/env.go
index b6ba3dffb..54c98d527 100644
--- a/commands/env.go
+++ b/commands/env.go
@@ -14,10 +14,10 @@
package commands
import (
- "fmt"
"runtime"
"github.com/spf13/cobra"
+ jww "github.com/spf13/jwalterweatherman"
)
var envCmd = &cobra.Command{
@@ -26,9 +26,9 @@ var envCmd = &cobra.Command{
Long: `Print Hugo version and environment info. This is useful in Hugo bug reports.`,
RunE: func(cmd *cobra.Command, args []string) error {
printHugoVersion()
- fmt.Printf("GOOS=%q\n", runtime.GOOS)
- fmt.Printf("GOARCH=%q\n", runtime.GOARCH)
- fmt.Printf("GOVERSION=%q\n", runtime.Version())
+ jww.FEEDBACK.Printf("GOOS=%q\n", runtime.GOOS)
+ jww.FEEDBACK.Printf("GOARCH=%q\n", runtime.GOARCH)
+ jww.FEEDBACK.Printf("GOVERSION=%q\n", runtime.Version())
return nil
},