Skip to content

Commit f9af294

Browse files
committed
fix: remove duplicate, prefer 'nuxt' + add help snapshots
1 parent 31cb92b commit f9af294

6 files changed

Lines changed: 532 additions & 7 deletions

File tree

packages/nuxt-cli/src/commands/_shared.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ export const legacyRootDirArgs = {
5353
// cwd falls back to rootDir's default (indirect default)
5454
cwd: {
5555
...cwdArgs.cwd,
56-
description: 'Specify the working directory, this takes precedence over ROOTDIR (default: `.`)',
56+
description: 'Specify the working directory, this takes precedence over ROOTDIR',
5757
default: undefined,
5858
},
5959
rootDir: {
6060
type: 'positional',
61-
description: 'Specifies the working directory (default: `.`)',
61+
description: 'Specifies the working directory',
6262
required: false,
6363
default: '.',
6464
},

packages/nuxt-cli/src/commands/dev-child.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default defineCommand({
2424
},
2525
async run(ctx) {
2626
if (!process.send && !isTest) {
27-
console.warn('`nuxi _dev` is an internal command and should not be used directly. Please use `nuxi dev` instead.')
27+
console.warn('`nuxt _dev` is an internal command and should not be used directly. Please use `nuxt dev` instead.')
2828
}
2929

3030
const cwd = resolve(ctx.args.cwd || ctx.args.rootDir)

packages/nuxt-cli/src/commands/preview.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { cwdArgs, dotEnvArgs, envNameArgs, extendsArgs, legacyRootDirArgs, logLe
1717
const command = defineCommand({
1818
meta: {
1919
name: 'preview',
20-
description: 'Launches Nitro server for local testing after `nuxi build`.',
20+
description: 'Launches Nitro server for local testing after `nuxt build`.',
2121
},
2222
args: {
2323
...cwdArgs,
@@ -67,7 +67,7 @@ const command = defineCommand({
6767
const nitroJSONPath = nitroJSONPaths.find(p => existsSync(p))
6868
if (!nitroJSONPath) {
6969
logger.error(
70-
`Cannot find ${colors.cyan('nitro.json')}. Did you run ${colors.cyan('nuxi build')} first? Search path:\n${nitroJSONPaths.join('\n')}`,
70+
`Cannot find ${colors.cyan('nitro.json')}. Did you run ${colors.cyan('nuxt build')} first? Search path:\n${nitroJSONPaths.join('\n')}`,
7171
)
7272
process.exit(1)
7373
}

packages/nuxt-cli/src/commands/upgrade.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default defineCommand({
9999
type: 'string',
100100
alias: 'ch',
101101
default: 'stable',
102-
description: 'Specify a channel to install from (default: stable)',
102+
description: 'Specify a channel to install from',
103103
valueHint: 'stable|nightly|v3|v4|v4-nightly|v3-nightly',
104104
},
105105
},

packages/nuxt-cli/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { templateNames } from './utils/templates/names'
2020

2121
const _main = defineCommand({
2222
meta: {
23-
name: name.endsWith('nightly') ? name : 'nuxi',
23+
name: name.endsWith('nightly') ? name : 'nuxt',
2424
version,
2525
description,
2626
},

0 commit comments

Comments
 (0)