Improve some random feedback messages

Also clean up a couple random comments.
This commit is contained in:
Anthony Fok
2015-12-16 20:41:33 -07:00
parent 9c39593dee
commit 3574304c68
4 changed files with 8 additions and 7 deletions

View File

@@ -144,10 +144,12 @@ func doNewSite(basepath string, force bool) error {
createConfig(basepath, configFormat)
jww.FEEDBACK.Printf("Congratulations! Your new Hugo site is created in %q.\n", basepath)
return nil
}
// NewSite creates a new hugo site and initializes a structured Hugo directory.
// NewSite creates a new Hugo site and initializes a structured Hugo directory.
func NewSite(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
return newUserError("path needs to be provided")
@@ -161,7 +163,6 @@ func NewSite(cmd *cobra.Command, args []string) error {
forceNew, _ := cmd.Flags().GetBool("force")
return doNewSite(createpath, forceNew)
}
// NewTheme creates a new Hugo theme.
@@ -176,7 +177,7 @@ func NewTheme(cmd *cobra.Command, args []string) error {
}
createpath := helpers.AbsPathify(filepath.Join("themes", args[0]))
jww.INFO.Println("creating theme at", createpath)
jww.INFO.Println("Creating theme at", createpath)
if x, _ := helpers.Exists(createpath, hugofs.SourceFs); x {
return newUserError(createpath, "already exists")