summaryrefslogtreecommitdiffhomepage
path: root/commands/env.go
diff options
context:
space:
mode:
authorbogem <[email protected]>2016-11-22 18:47:20 +0100
committerBjørn Erik Pedersen <[email protected]>2016-11-22 22:06:48 +0100
commit120f6b0cf20dfc977f33e650530d866e28e52a28 (patch)
tree232ebeb1e3b3b7e356c352d6febb268e69d1059d /commands/env.go
parente1da7cb3204c6d232f4a1bdbf89ce75d8459a8b8 (diff)
downloadhugo-120f6b0cf20dfc977f33e650530d866e28e52a28.tar.gz
hugo-120f6b0cf20dfc977f33e650530d866e28e52a28.zip
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
},