diff options
author | bogem <albertnigma@gmail.com> | 2016-11-22 20:47:20 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-11-23 00:06:48 +0300 |
commit | 120f6b0cf20dfc977f33e650530d866e28e52a28 (patch) | |
tree | 232ebeb1e3b3b7e356c352d6febb268e69d1059d /commands/import_jekyll.go | |
parent | e1da7cb3204c6d232f4a1bdbf89ce75d8459a8b8 (diff) |
all: Use jww instead of fmt for printing
This is an attempt to unify method for printing.
Diffstat (limited to 'commands/import_jekyll.go')
-rw-r--r-- | commands/import_jekyll.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/commands/import_jekyll.go b/commands/import_jekyll.go index 8e74fa8d1..61b4660e9 100644 --- a/commands/import_jekyll.go +++ b/commands/import_jekyll.go @@ -16,7 +16,6 @@ package commands import ( "bytes" "errors" - "fmt" "io" "io/ioutil" "os" @@ -90,7 +89,7 @@ func importFromJekyll(cmd *cobra.Command, args []string) error { return newUserError(err) } - fmt.Println("Importing...") + jww.FEEDBACK.Println("Importing...") fileCount := 0 callback := func(path string, fi os.FileInfo, err error) error { @@ -129,10 +128,10 @@ func importFromJekyll(cmd *cobra.Command, args []string) error { if err != nil { return err } - fmt.Println("Congratulations!", fileCount, "post(s) imported!") - fmt.Println("Now, start Hugo by yourself:\n" + + jww.FEEDBACK.Println("Congratulations!", fileCount, "post(s) imported!") + jww.FEEDBACK.Println("Now, start Hugo by yourself:\n" + "$ git clone https://github.com/spf13/herring-cove.git " + args[1] + "/themes/herring-cove") - fmt.Println("$ cd " + args[1] + "\n$ hugo server --theme=herring-cove") + jww.FEEDBACK.Println("$ cd " + args[1] + "\n$ hugo server --theme=herring-cove") return nil } |