Capital J in Jekyll

This commit is contained in:
Bjørn Erik Pedersen 2015-10-04 23:26:18 +02:00
parent 0387deee03
commit ac1e3c3cc0

View file

@ -42,7 +42,7 @@ func init() {
var importCmd = &cobra.Command{ var importCmd = &cobra.Command{
Use: "import", Use: "import",
Short: "import from others", Short: "import from others",
Long: `import from others like jekyll. Long: `import from others like Jekyll.
Import requires a subcommand, e.g. ` + "`hugo import jekyll jekyll_root_path target_path`.", Import requires a subcommand, e.g. ` + "`hugo import jekyll jekyll_root_path target_path`.",
Run: nil, Run: nil,
@ -50,10 +50,10 @@ Import requires a subcommand, e.g. ` + "`hugo import jekyll jekyll_root_path tar
var importJekyllCmd = &cobra.Command{ var importJekyllCmd = &cobra.Command{
Use: "jekyll", Use: "jekyll",
Short: "hugo import from jekyll", Short: "hugo import from Jekyll",
Long: `hugo import from jekyll. Long: `hugo import from Jekyll.
Import jekyll requires two path, e.g. ` + "`hugo import jekyll jekyll_root_path target_path`.", Import from Jekyll requires two paths, e.g. ` + "`hugo import jekyll jekyll_root_path target_path`.",
Run: importFromJekyll, Run: importFromJekyll,
} }
@ -62,7 +62,7 @@ func importFromJekyll(cmd *cobra.Command, args []string) {
jww.SetStdoutThreshold(jww.LevelWarn) jww.SetStdoutThreshold(jww.LevelWarn)
if len(args) < 2 { if len(args) < 2 {
jww.ERROR.Println(`Import jekyll requires two path, e.g. ` + "`hugo import jekyll jekyll_root_path target_path`.") jww.ERROR.Println(`Import from Jekyll requires two paths, e.g. ` + "`hugo import jekyll jekyll_root_path target_path`.")
return return
} }
@ -80,7 +80,7 @@ func importFromJekyll(cmd *cobra.Command, args []string) {
createSiteFromJekyll(jekyllRoot, targetDir) createSiteFromJekyll(jekyllRoot, targetDir)
jww.INFO.Println("Import jekyll from:", jekyllRoot, "to:", targetDir) jww.INFO.Println("Import Jekyll from:", jekyllRoot, "to:", targetDir)
fmt.Println("Importing...") fmt.Println("Importing...")
fileCount := 0 fileCount := 0
@ -122,7 +122,7 @@ func importFromJekyll(cmd *cobra.Command, args []string) {
fmt.Println(err) fmt.Println(err)
} else { } else {
fmt.Println("Congratulations!", fileCount, "posts imported!") fmt.Println("Congratulations!", fileCount, "posts imported!")
fmt.Println("Now, start hugo by yourself: \n" + fmt.Println("Now, start Hugo by yourself: \n" +
"$ git clone https://github.com/spf13/herring-cove.git " + args[1] + "/themes/herring-cove") "$ git clone https://github.com/spf13/herring-cove.git " + args[1] + "/themes/herring-cove")
fmt.Println("$ cd " + args[1] + "\n$ hugo server -w --theme=herring-cove") fmt.Println("$ cd " + args[1] + "\n$ hugo server -w --theme=herring-cove")
} }