summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/hugo.go4
-rw-r--r--commands/new.go7
-rw-r--r--commands/server.go2
-rw-r--r--create/content.go2
4 files changed, 8 insertions, 7 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index 5bf40bbbe..ef3df9d71 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-//Package commands defines and implements command-line commands and flags used by Hugo. Commands and flags are implemented using
-//cobra.
+// Package commands defines and implements command-line commands and flags
+// used by Hugo. Commands and flags are implemented using Cobra.
package commands
import (
diff --git a/commands/new.go b/commands/new.go
index 0eb87dac3..a30c9f55b 100644
--- a/commands/new.go
+++ b/commands/new.go
@@ -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")
diff --git a/commands/server.go b/commands/server.go
index 064c846b6..3e41a14b4 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -166,7 +166,7 @@ func server(cmd *cobra.Command, args []string) error {
rootWatchDirs := strings.Join(helpers.UniqueStrings(helpers.ExtractRootPaths(watchDirs)), ",")
- jww.FEEDBACK.Printf("Watching for changes in %s/{%s}\n", baseWatchDir, rootWatchDirs)
+ jww.FEEDBACK.Printf("Watching for changes in %s%s{%s}\n", baseWatchDir, helpers.FilePathSeparator, rootWatchDirs)
err := NewWatcher(serverPort)
if err != nil {
diff --git a/create/content.go b/create/content.go
index e56c5c951..3607e0139 100644
--- a/create/content.go
+++ b/create/content.go
@@ -113,7 +113,7 @@ func NewContent(kind, name string) (err error) {
editor := viper.GetString("NewContentEditor")
if editor != "" {
- jww.FEEDBACK.Printf("Editing %s in %s.\n", name, editor)
+ jww.FEEDBACK.Printf("Editing %s with %q ...\n", name, editor)
cmd := exec.Command(editor, helpers.AbsPathify(path.Join(viper.GetString("contentDir"), name)))
cmd.Stdin = os.Stdin