Skip to content

Commit 9d1d8c8

Browse files
jmooringbep
authored andcommitted
commands: Fix description of new theme commands
Fixes #13701
1 parent 84d7a10 commit 9d1d8c8

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

commands/new.go

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ Ensure you run this within the root directory of your site.`,
7676
&simpleCommand{
7777
name: "site",
7878
use: "site [path]",
79-
short: "Create a new site (skeleton)",
80-
long: `Create a new site in the provided directory.
81-
The new site will have the correct structure, but no content or theme yet.
82-
Use ` + "`hugo new [contentPath]`" + ` to create new content.`,
79+
short: "Create a new site",
80+
long: `Create a new site at the specified path.`,
8381
run: func(ctx context.Context, cd *simplecobra.Commandeer, r *rootCommand, args []string) error {
8482
if len(args) < 1 {
8583
return newUserError("path needs to be provided")
@@ -124,11 +122,9 @@ Use ` + "`hugo new [contentPath]`" + ` to create new content.`,
124122
&simpleCommand{
125123
name: "theme",
126124
use: "theme [name]",
127-
short: "Create a new theme (skeleton)",
128-
long: `Create a new theme (skeleton) called [name] in ./themes.
129-
New theme is a skeleton. Please add content to the touched files. Add your
130-
name to the copyright line in the license and adjust the theme.toml file
131-
according to your needs.`,
125+
short: "Create a new theme",
126+
long: `Create a new theme with the specified name in the ./themes directory.
127+
This generates a functional theme including template examples and sample content.`,
132128
run: func(ctx context.Context, cd *simplecobra.Commandeer, r *rootCommand, args []string) error {
133129
if len(args) < 1 {
134130
return newUserError("theme name needs to be provided")

testscripts/commands/new.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Test the new command.
22

33
hugo new site -h
4-
stdout 'Create a new site in the provided directory'
4+
stdout 'Create a new site at the specified path.'
55
hugo new site my-yaml-site --format yml
66
checkfile my-yaml-site/hugo.yml
77
hugo new site mysite -f
@@ -19,7 +19,7 @@ exists themes
1919
! exists resources
2020

2121
hugo new theme -h
22-
stdout 'Create a new theme \(skeleton\) called \[name\] in ./themes'
22+
stdout 'Create a new theme with the specified name in the ./themes directory.'
2323
hugo new theme mytheme --format yml
2424
stdout 'Creating new theme'
2525
! exists resources

0 commit comments

Comments
 (0)