diff --git a/packages/nuxt-cli/src/commands/add-template.ts b/packages/nuxt-cli/src/commands/add-template.ts index 4620aadb7..1ffd14563 100644 --- a/packages/nuxt-cli/src/commands/add-template.ts +++ b/packages/nuxt-cli/src/commands/add-template.ts @@ -14,6 +14,7 @@ import { templates } from '../utils/templates/index' import { httpMethods, modes } from '../utils/templates/modifiers' import { templateNames } from '../utils/templates/names' import { cwdArgs, logLevelArgs } from './_shared' +import { commandMeta } from './meta' const modifierArgs = Object.fromEntries([ ...modes.map(mode => [mode, `Shorthand for \`--mode ${mode}\``] as const), @@ -21,10 +22,7 @@ const modifierArgs = Object.fromEntries([ ].map(([name, description]) => [name, { type: 'boolean', description }] as const)) export default defineCommand({ - meta: { - name: 'add-template', - description: 'Create a new template file.', - }, + meta: commandMeta['add-template'], args: { ...cwdArgs, ...logLevelArgs, diff --git a/packages/nuxt-cli/src/commands/analyze.ts b/packages/nuxt-cli/src/commands/analyze.ts index 19e74887c..b9505efa0 100644 --- a/packages/nuxt-cli/src/commands/analyze.ts +++ b/packages/nuxt-cli/src/commands/analyze.ts @@ -21,6 +21,7 @@ import { intro, logger, outro } from '../utils/logger' import { relativeToProcess, resolveRootDir } from '../utils/paths' import { resolveServerBuild } from '../utils/server-build' import { dotEnvArgs, extendsArgs, logLevelArgs, rootDirArgs } from './_shared' +import { commandMeta } from './meta' const NON_WORD_RE = /[^\w-]/g @@ -44,10 +45,7 @@ const indexHtml = ` `.trim() export default defineCommand({ - meta: { - name: 'analyze', - description: 'Build Nuxt and analyze production bundle (experimental)', - }, + meta: commandMeta.analyze, args: { ...rootDirArgs, ...logLevelArgs, diff --git a/packages/nuxt-cli/src/commands/build.ts b/packages/nuxt-cli/src/commands/build.ts index 8fab2d26f..95123b0e5 100644 --- a/packages/nuxt-cli/src/commands/build.ts +++ b/packages/nuxt-cli/src/commands/build.ts @@ -20,15 +20,13 @@ import { createPhaseReporter, formatPhaseBreakdown } from '../utils/phase-report import { startCpuProfile, stopCpuProfile } from '../utils/profile' import { resolveServerBuild } from '../utils/server-build' import { dotEnvArgs, envNameArgs, extendsArgs, logLevelArgs, profileArgs, rootDirArgs, targetArgs } from './_shared' +import { commandMeta } from './meta' /** How often a phase repeats itself where there is no animated line. */ const HEARTBEAT_INTERVAL = 5000 export default defineCommand({ - meta: { - name: 'build', - description: 'Build Nuxt for production deployment', - }, + meta: commandMeta.build, args: { ...rootDirArgs, ...logLevelArgs, diff --git a/packages/nuxt-cli/src/commands/cleanup.ts b/packages/nuxt-cli/src/commands/cleanup.ts index be6a4483c..1f35f99eb 100644 --- a/packages/nuxt-cli/src/commands/cleanup.ts +++ b/packages/nuxt-cli/src/commands/cleanup.ts @@ -6,12 +6,10 @@ import { logger } from '../utils/logger' import { cleanupNuxtDirs } from '../utils/nuxt' import { resolveRootDir } from '../utils/paths' import { rootDirArgs } from './_shared' +import { commandMeta } from './meta' export default defineCommand({ - meta: { - name: 'cleanup', - description: 'Clean up generated Nuxt files and caches', - }, + meta: commandMeta.cleanup, args: { ...rootDirArgs, }, diff --git a/packages/nuxt-cli/src/commands/curl.ts b/packages/nuxt-cli/src/commands/curl.ts index d55027e07..cee9b4ffc 100644 --- a/packages/nuxt-cli/src/commands/curl.ts +++ b/packages/nuxt-cli/src/commands/curl.ts @@ -15,6 +15,7 @@ import { logger } from '../utils/logger' import { logNetworkError } from '../utils/network' import { resolveRootDir } from '../utils/paths' import { rootDirArgs } from './_shared' +import { commandMeta } from './meta' const HAS_SCHEME_RE = /^[a-z][a-z\d+.-]*:\/\//i const JSON_CONTENT_TYPE_RE = /^application\/(?:[\w.+-]+\+)?json\b/i @@ -45,10 +46,7 @@ const BINARY_SNIFF_BYTES = 4096 const HTTP_ERROR_EXIT_CODE = 22 export default defineCommand({ - meta: { - name: 'curl', - description: 'Send an HTTP request to your running Nuxt dev server', - }, + meta: commandMeta.curl, args: { // `url` has to precede the `dir` positional supplied by `rootDirArgs` url: { diff --git a/packages/nuxt-cli/src/commands/dev-child.ts b/packages/nuxt-cli/src/commands/dev-child.ts index d9f370320..a313df73a 100644 --- a/packages/nuxt-cli/src/commands/dev-child.ts +++ b/packages/nuxt-cli/src/commands/dev-child.ts @@ -3,13 +3,10 @@ import { defineCommand } from 'citty' import { resolveRootDir } from '../utils/paths' import { dotEnvArgs, envNameArgs, logLevelArgs, rootDirArgs } from './_shared' +import { commandMeta } from './meta' export default defineCommand({ - meta: { - name: '_dev', - description: 'Run Nuxt development server (internal command to start child process)', - hidden: true, - }, + meta: commandMeta._dev, args: { ...rootDirArgs, ...logLevelArgs, diff --git a/packages/nuxt-cli/src/commands/dev.ts b/packages/nuxt-cli/src/commands/dev.ts index 5652eadd4..9438e3fed 100644 --- a/packages/nuxt-cli/src/commands/dev.ts +++ b/packages/nuxt-cli/src/commands/dev.ts @@ -28,16 +28,14 @@ import { debug, logger } from '../utils/logger' import { resolveRootDir } from '../utils/paths' import { startupElapsedMs } from '../utils/startup-clock' import { dotEnvArgs, envNameArgs, extendsArgs, logLevelArgs, profileArgs, rootDirArgs } from './_shared' +import { commandMeta } from './meta' const startTime: number | undefined = Date.now() const forkSupported = !isTest && (!isBun || isBunForkSupported()) const command = defineCommand({ - meta: { - name: 'dev', - description: 'Run Nuxt development server', - }, + meta: commandMeta.dev, args: { ...rootDirArgs, ...logLevelArgs, diff --git a/packages/nuxt-cli/src/commands/devtools.ts b/packages/nuxt-cli/src/commands/devtools.ts index 493a6b5a1..0437fae4a 100644 --- a/packages/nuxt-cli/src/commands/devtools.ts +++ b/packages/nuxt-cli/src/commands/devtools.ts @@ -4,12 +4,10 @@ import { x } from 'tinyexec' import { ActionableError } from '../utils/errors' import { resolveRootDir } from '../utils/paths' import { rootDirArgs } from './_shared' +import { commandMeta } from './meta' export default defineCommand({ - meta: { - name: 'devtools', - description: 'Enable or disable devtools in a Nuxt project', - }, + meta: commandMeta.devtools, args: { command: { type: 'positional', diff --git a/packages/nuxt-cli/src/commands/docs.ts b/packages/nuxt-cli/src/commands/docs.ts index 60726221a..65cd27469 100644 --- a/packages/nuxt-cli/src/commands/docs.ts +++ b/packages/nuxt-cli/src/commands/docs.ts @@ -13,14 +13,12 @@ import { resolveRootDir } from '../utils/paths' import { withSpinner } from '../utils/spinner' import { isInteractive } from '../utils/stdout' import { cwdArgs } from './_shared' +import { commandMeta } from './meta' const MAX_RESULTS = 8 export default defineCommand({ - meta: { - name: 'docs', - description: 'Search or open the Nuxt documentation', - }, + meta: commandMeta.docs, args: { query: { type: 'positional', diff --git a/packages/nuxt-cli/src/commands/generate.ts b/packages/nuxt-cli/src/commands/generate.ts index 8d0be0475..cf768342f 100644 --- a/packages/nuxt-cli/src/commands/generate.ts +++ b/packages/nuxt-cli/src/commands/generate.ts @@ -2,12 +2,10 @@ import { defineCommand } from 'citty' import { dotEnvArgs, envNameArgs, extendsArgs, logLevelArgs, profileArgs, rootDirArgs, targetArgs } from './_shared' import buildCommand from './build' +import { commandMeta } from './meta' export default defineCommand({ - meta: { - name: 'generate', - description: 'Build Nuxt and prerender all routes', - }, + meta: commandMeta.generate, args: { ...rootDirArgs, ...logLevelArgs, diff --git a/packages/nuxt-cli/src/commands/info.ts b/packages/nuxt-cli/src/commands/info.ts index 640af78a3..d6254d068 100644 --- a/packages/nuxt-cli/src/commands/info.ts +++ b/packages/nuxt-cli/src/commands/info.ts @@ -24,6 +24,7 @@ import { detectPackageManager, getPackageManagerVersion } from '../utils/package import { resolveRootDir } from '../utils/paths' import { tryResolveNuxt } from '../utils/resolve-nuxt' import { rootDirArgs } from './_shared' +import { commandMeta } from './meta' const LEADING_SLASH_RE = /^\// @@ -44,10 +45,7 @@ const JSON_KEYS: Record = { } export default defineCommand({ - meta: { - name: 'info', - description: 'Get information about Nuxt project', - }, + meta: commandMeta.info, args: { ...rootDirArgs, json: { diff --git a/packages/nuxt-cli/src/commands/init.ts b/packages/nuxt-cli/src/commands/init.ts index 75ad52b0c..ac82e54a8 100644 --- a/packages/nuxt-cli/src/commands/init.ts +++ b/packages/nuxt-cli/src/commands/init.ts @@ -4,13 +4,10 @@ import { defineCommand } from 'citty' import { getCreateCommand } from '../utils/headless' import { logger } from '../utils/logger' +import { commandMeta } from './meta' export default defineCommand({ - meta: { - name: 'init', - description: 'Scaffold a fresh project (moved to create-nuxt)', - hidden: true, - }, + meta: commandMeta.init, run(ctx) { const command = [getCreateCommand(), ...ctx.rawArgs].join(' ') logger.info(`Project scaffolding now lives in ${styleText('cyan', 'create-nuxt')}.`) diff --git a/packages/nuxt-cli/src/commands/meta.ts b/packages/nuxt-cli/src/commands/meta.ts new file mode 100644 index 000000000..61e380f23 --- /dev/null +++ b/packages/nuxt-cli/src/commands/meta.ts @@ -0,0 +1,93 @@ +import type { CommandMeta } from 'citty' + +import type { commands } from '.' + +export const commandMeta = { + 'add': { + name: 'add', + description: 'Add Nuxt modules and layers', + }, + 'add-template': { + name: 'add-template', + description: 'Create a new template file.', + }, + 'analyze': { + name: 'analyze', + description: 'Build Nuxt and analyze production bundle (experimental)', + }, + 'build': { + name: 'build', + description: 'Build Nuxt for production deployment', + }, + 'cleanup': { + name: 'cleanup', + description: 'Clean up generated Nuxt files and caches', + }, + 'curl': { + name: 'curl', + description: 'Send an HTTP request to your running Nuxt dev server', + }, + '_dev': { + name: '_dev', + description: 'Run Nuxt development server (internal command to start child process)', + hidden: true, + }, + 'dev': { + name: 'dev', + description: 'Run Nuxt development server', + }, + 'devtools': { + name: 'devtools', + description: 'Enable or disable devtools in a Nuxt project', + }, + 'docs': { + name: 'docs', + description: 'Search or open the Nuxt documentation', + }, + 'generate': { + name: 'generate', + description: 'Build Nuxt and prerender all routes', + }, + 'info': { + name: 'info', + description: 'Get information about Nuxt project', + }, + 'init': { + name: 'init', + description: 'Scaffold a fresh project (moved to create-nuxt)', + hidden: true, + }, + 'module': { + name: 'module', + description: 'Manage Nuxt modules', + }, + 'prepare': { + name: 'prepare', + description: 'Prepare Nuxt for development/build', + }, + 'preview': { + name: 'preview', + description: 'Launches Nitro server for local testing after `nuxt build`.', + }, + 'start': { + name: 'start', + description: 'Launches Nitro server for local testing after `nuxt build`.', + hidden: true, + }, + 'task': { + name: 'task', + description: 'List and run Nitro tasks on your dev server', + }, + 'test': { + name: 'test', + description: 'Run tests', + }, + 'typecheck': { + name: 'typecheck', + description: 'Runs type-checking throughout your app using `vue-tsc` or Golar.', + }, + 'upgrade': { + name: 'upgrade', + description: 'Upgrade Nuxt', + }, +} as const satisfies Record diff --git a/packages/nuxt-cli/src/commands/module/add.ts b/packages/nuxt-cli/src/commands/module/add.ts index 2cde25317..47af2e02f 100644 --- a/packages/nuxt-cli/src/commands/module/add.ts +++ b/packages/nuxt-cli/src/commands/module/add.ts @@ -22,6 +22,7 @@ import { defaultPackageManager, detectPackageManager, isPackageManagerName, pack import { createSpinner } from '../../utils/spinner' import { getNuxtVersion } from '../../utils/versions' import { cwdArgs, logLevelArgs } from '../_shared' +import { commandMeta } from '../meta' import prepareCommand from '../prepare' import { selectModulesAutocomplete } from './_autocomplete' import { basePackageName, checkNuxtCompatibility, ensureNuxtDependency, fetchModules, forwardCommandArgs, getProjectDependencies, MODULES_API_URL, parseModuleSpec, resolveModuleEntry } from './_utils' @@ -47,7 +48,7 @@ export function defineAddCommand({ layers = false }: { layers?: boolean } = {}) return defineCommand({ meta: { name: 'add', - description: layers ? 'Add Nuxt modules and layers' : 'Add Nuxt modules', + description: layers ? commandMeta.add.description : 'Add Nuxt modules', }, args: { ...cwdArgs, diff --git a/packages/nuxt-cli/src/commands/module/index.ts b/packages/nuxt-cli/src/commands/module/index.ts index 01407b028..b5e341da3 100644 --- a/packages/nuxt-cli/src/commands/module/index.ts +++ b/packages/nuxt-cli/src/commands/module/index.ts @@ -1,10 +1,8 @@ import { defineCommand } from 'citty' +import { commandMeta } from '../meta' export default defineCommand({ - meta: { - name: 'module', - description: 'Manage Nuxt modules', - }, + meta: commandMeta.module, args: {}, subCommands: { add: () => import('./add').then(r => r.default || r), diff --git a/packages/nuxt-cli/src/commands/prepare.ts b/packages/nuxt-cli/src/commands/prepare.ts index ca50f51a3..0f9b11cab 100644 --- a/packages/nuxt-cli/src/commands/prepare.ts +++ b/packages/nuxt-cli/src/commands/prepare.ts @@ -10,12 +10,10 @@ import { readActiveLock } from '../utils/lockfile' import { logger } from '../utils/logger' import { relativeToProcess, resolveRootDir } from '../utils/paths' import { dotEnvArgs, envNameArgs, extendsArgs, logLevelArgs, rootDirArgs } from './_shared' +import { commandMeta } from './meta' export default defineCommand({ - meta: { - name: 'prepare', - description: 'Prepare Nuxt for development/build', - }, + meta: commandMeta.prepare, args: { ...rootDirArgs, ...dotEnvArgs, diff --git a/packages/nuxt-cli/src/commands/preview.ts b/packages/nuxt-cli/src/commands/preview.ts index 5c157a540..a289acbde 100644 --- a/packages/nuxt-cli/src/commands/preview.ts +++ b/packages/nuxt-cli/src/commands/preview.ts @@ -17,12 +17,10 @@ import { relativeToProcess, resolveRootDir } from '../utils/paths' import { resolveServerBuild } from '../utils/server-build' import { findStaticEntry, formatServerURL, previewStaticOutput } from '../utils/static-preview' import { dotEnvArgs, envNameArgs, extendsArgs, logLevelArgs, rootDirArgs } from './_shared' +import { commandMeta } from './meta' const command = defineCommand({ - meta: { - name: 'preview', - description: 'Launches Nitro server for local testing after `nuxt build`.', - }, + meta: commandMeta.preview, args: { ...rootDirArgs, ...logLevelArgs, diff --git a/packages/nuxt-cli/src/commands/start.ts b/packages/nuxt-cli/src/commands/start.ts index 20f568a3e..6ff4b22c7 100644 --- a/packages/nuxt-cli/src/commands/start.ts +++ b/packages/nuxt-cli/src/commands/start.ts @@ -1,12 +1,9 @@ import { defineCommand } from 'citty' +import { commandMeta } from './meta' import preview from './preview' export default defineCommand({ ...preview, - meta: { - name: 'start', - description: 'Launches Nitro server for local testing after `nuxt build`.', - hidden: true, - }, + meta: commandMeta.start, }) diff --git a/packages/nuxt-cli/src/commands/task/index.ts b/packages/nuxt-cli/src/commands/task/index.ts index 697d8ef33..60d9d4156 100644 --- a/packages/nuxt-cli/src/commands/task/index.ts +++ b/packages/nuxt-cli/src/commands/task/index.ts @@ -1,10 +1,8 @@ import { defineCommand } from 'citty' +import { commandMeta } from '../meta' export default defineCommand({ - meta: { - name: 'task', - description: 'List and run Nitro tasks on your dev server', - }, + meta: commandMeta.task, args: {}, subCommands: { list: () => import('./list').then(r => r.default || r), diff --git a/packages/nuxt-cli/src/commands/test.ts b/packages/nuxt-cli/src/commands/test.ts index 78ddd55b8..6888f45df 100644 --- a/packages/nuxt-cli/src/commands/test.ts +++ b/packages/nuxt-cli/src/commands/test.ts @@ -7,12 +7,10 @@ import { resolveModulePath } from 'exsolve' import { ActionableError } from '../utils/errors' import { resolveRootDir } from '../utils/paths' import { rootDirArgs } from './_shared' +import { commandMeta } from './meta' export default defineCommand({ - meta: { - name: 'test', - description: 'Run tests', - }, + meta: commandMeta.test, args: { ...rootDirArgs, dev: { diff --git a/packages/nuxt-cli/src/commands/typecheck.ts b/packages/nuxt-cli/src/commands/typecheck.ts index 535ed2906..9e795abb5 100644 --- a/packages/nuxt-cli/src/commands/typecheck.ts +++ b/packages/nuxt-cli/src/commands/typecheck.ts @@ -21,6 +21,7 @@ import { resolveRootDir } from '../utils/paths' import { withNodePath } from '../utils/resolve-nuxt' import { createSpinner } from '../utils/spinner' import { dotEnvArgs, extendsArgs, logLevelArgs, rootDirArgs } from './_shared' +import { commandMeta } from './meta' type TypeChecker = 'vue-tsc' | 'golar' @@ -108,10 +109,7 @@ const TYPE_CHECKERS: Record = { const CHECKER_PRIORITY = Object.keys(TYPE_CHECKERS) as TypeChecker[] export default defineCommand({ - meta: { - name: 'typecheck', - description: 'Runs type-checking throughout your app using `vue-tsc` or Golar.', - }, + meta: commandMeta.typecheck, args: { ...rootDirArgs, ...logLevelArgs, diff --git a/packages/nuxt-cli/src/commands/upgrade.ts b/packages/nuxt-cli/src/commands/upgrade.ts index 3ae567c73..7137b9594 100644 --- a/packages/nuxt-cli/src/commands/upgrade.ts +++ b/packages/nuxt-cli/src/commands/upgrade.ts @@ -21,6 +21,7 @@ import { relativeToProcess, resolveRootDir } from '../utils/paths' import { createSpinner } from '../utils/spinner' import { getNuxtVersion, resolveRegistryVersion } from '../utils/versions' import { logLevelArgs, rootDirArgs } from './_shared' +import { commandMeta } from './meta' function checkNuxtDependencyType(pkg: PackageJson): 'dependencies' | 'devDependencies' { if (pkg.dependencies?.nuxt) { @@ -143,10 +144,7 @@ async function getRequiredNewVersion(packageNames: string[], channel: string): P } export default defineCommand({ - meta: { - name: 'upgrade', - description: 'Upgrade Nuxt', - }, + meta: commandMeta.upgrade, args: { ...rootDirArgs, ...logLevelArgs, diff --git a/packages/nuxt-cli/src/run.ts b/packages/nuxt-cli/src/run.ts index e7de0268c..c937a618a 100644 --- a/packages/nuxt-cli/src/run.ts +++ b/packages/nuxt-cli/src/run.ts @@ -8,6 +8,7 @@ import { runCommand as _runCommand, runMain as _runMain, renderUsage } from 'cit import { commands } from './commands' import { globalCwdArgs } from './commands/_shared' +import { commandMeta } from './commands/meta' import { main } from './main' import { warnOnHang } from './utils/hang' @@ -62,9 +63,17 @@ export async function runCommand( }) } +/** The root command with each subcommand reduced to its meta, so listing them loads none. */ +function withCommandMeta(cmd: CommandDef): CommandDef { + return { + ...cmd, + subCommands: Object.fromEntries(Object.keys(commands).map(name => [name, { meta: commandMeta[name as keyof typeof commands] }])), + } +} + /** Print usage, unstyled when stdout lacks colour support. */ export async function showUsage(cmd: CommandDef, parent?: CommandDef): Promise { - const usage = await renderUsage(cmd, parent) + const usage = await renderUsage(cmd === main ? withCommandMeta(cmd) : cmd, parent) const plain = process.env.NO_COLOR || !process.stdout.hasColors?.() process.stdout.write(`${plain ? stripVTControlCharacters(usage) : usage}\n\n`) } diff --git a/patches/citty@0.2.2.patch b/patches/citty@0.2.2.patch index 7966c6c4f..ffba95873 100644 --- a/patches/citty@0.2.2.patch +++ b/patches/citty@0.2.2.patch @@ -49,7 +49,7 @@ index a1366a146c3e54139fd82fd9d562a4f4329fa733..de79b9a2be12feb563d9e5b572a7f0ec declare function runCommand(cmd: CommandDef, opts: RunCommandOptions): Promise<{ result: unknown; diff --git a/dist/index.mjs b/dist/index.mjs -index d0af470ebf46490d35a130436b67f287c46bdb0f..59d8d72cae4bb091a660cfb576e066333af64857 100644 +index d0af470ebf46490d35a130436b67f287c46bdb0f..065ab6f227fd68c3aa8033f43877aa0887f2f74b 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -26,6 +26,7 @@ var CLIError = class extends Error { @@ -212,7 +212,15 @@ index d0af470ebf46490d35a130436b67f287c46bdb0f..59d8d72cae4bb091a660cfb576e06633 } else if (!cmd.run) throw new CLIError(`No command specified.`, "E_NO_COMMAND"); } } -@@ -278,14 +308,42 @@ function findSubCommandIndex(rawArgs, argsDef) { +@@ -256,6 +286,7 @@ async function resolveSubCommand(cmd, rawArgs, parent) { + return [cmd, parent]; + } + async function _findSubCommand(subCommands, name) { ++ if (name === void 0) return; + if (name in subCommands) return resolveValue(subCommands[name]); + for (const sub of Object.values(subCommands)) { + const resolved = await resolveValue(sub); +@@ -278,14 +309,42 @@ function findSubCommandIndex(rawArgs, argsDef) { return -1; } function _isValueFlag(flag, argsDef) { @@ -259,7 +267,7 @@ index d0af470ebf46490d35a130436b67f287c46bdb0f..59d8d72cae4bb091a660cfb576e06633 } //#endregion //#region src/usage.ts -@@ -307,11 +365,12 @@ async function renderUsage(cmd, parent) { +@@ -307,11 +366,12 @@ async function renderUsage(cmd, parent) { const commandsLines = []; const usageLine = []; for (const arg of cmdArgs) if (arg.type === "positional") { @@ -273,7 +281,7 @@ index d0af470ebf46490d35a130436b67f287c46bdb0f..59d8d72cae4bb091a660cfb576e06633 const isRequired = arg.required === true && arg.default === void 0; const argStr = [...(arg.alias || []).map((a) => `-${a}`), `--${arg.name}`].join(", ") + renderValueHint(arg); argLines.push([cyan(argStr), renderDescription(arg, isRequired)]); -@@ -364,9 +423,10 @@ async function renderUsage(cmd, parent) { +@@ -364,9 +424,10 @@ async function renderUsage(cmd, parent) { function renderValueHint(arg) { const valueHint = arg.valueHint ? `=<${arg.valueHint}>` : ""; const fallbackValueHint = valueHint || `=<${snakeCase(arg.name)}>`; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 41ffed71f..4222a9135 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -219,7 +219,7 @@ overrides: packageExtensionsChecksum: sha256-sm4nGNicbfBcBFqyPee94YVGSlqHSFIRmZUlIsHW8Vw= patchedDependencies: - citty@0.2.2: 24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac + citty@0.2.2: 732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272 importers: @@ -314,7 +314,7 @@ importers: devDependencies: '@bomb.sh/tab': specifier: ^0.0.22 - version: 0.0.22(cac@7.0.0)(citty@0.2.2(patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac)) + version: 0.0.22(cac@7.0.0)(citty@0.2.2(patch_hash=732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272)) '@clack/prompts': specifier: ^1.8.1 version: 1.8.1 @@ -323,7 +323,7 @@ importers: version: 24.19.0 citty: specifier: ^0.2.2 - version: 0.2.2(patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac) + version: 0.2.2(patch_hash=732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272) giget: specifier: ^3.3.1 version: 3.3.1 @@ -366,7 +366,7 @@ importers: version: 24.19.0 citty: specifier: ^0.2.2 - version: 0.2.2(patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac) + version: 0.2.2(patch_hash=732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272) jiti: specifier: ^2.7.0 version: 2.7.0 @@ -466,7 +466,7 @@ importers: devDependencies: '@bomb.sh/tab': specifier: ^0.0.22 - version: 0.0.22(cac@7.0.0)(citty@0.2.2(patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac)) + version: 0.0.22(cac@7.0.0)(citty@0.2.2(patch_hash=732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272)) '@nuxt/kit': specifier: ^4.5.2 version: 4.5.2(magic-string@1.4.2)(magicast@0.5.5)(oxc-parser@0.150.0)(rolldown@1.2.11)(unplugin@3.4.0(esbuild@0.28.2)(rolldown@1.2.11)(rollup@4.63.5)(vite@8.3.1)) @@ -484,7 +484,7 @@ importers: version: 24.19.0 citty: specifier: ^0.2.2 - version: 0.2.2(patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac) + version: 0.2.2(patch_hash=732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272) giget: specifier: ^3.3.1 version: 3.3.1 @@ -6856,10 +6856,10 @@ snapshots: '@bcoe/v8-coverage@1.0.2': {} - '@bomb.sh/tab@0.0.22(cac@7.0.0)(citty@0.2.2(patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac))': + '@bomb.sh/tab@0.0.22(cac@7.0.0)(citty@0.2.2(patch_hash=732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272))': optionalDependencies: cac: 7.0.0 - citty: 0.2.2(patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac) + citty: 0.2.2(patch_hash=732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272) '@cacheable/memory@2.2.0': dependencies: @@ -8145,7 +8145,7 @@ snapshots: '@nuxt/telemetry@2.9.1(@nuxt/kit-nightly@5.0.0-29844772.97ae4fa8(@nuxt/schema-nightly@5.0.0-29844772.97ae4fa8)(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.2)(mlly@1.8.2)(oxc-parser@0.150.0)(rolldown@1.2.11)(unplugin@3.4.0(esbuild@0.28.2)(rolldown@1.2.11)(rollup@4.63.5)(vite@8.3.1)))': dependencies: '@nuxt/kit': '@nuxt/kit-nightly@5.0.0-29844772.97ae4fa8(@nuxt/schema-nightly@5.0.0-29844772.97ae4fa8)(confbox@0.3.1)(dotenv@17.4.2)(giget@3.3.1)(jiti@2.7.0)(magic-string@1.4.2)(mlly@1.8.2)(oxc-parser@0.150.0)(rolldown@1.2.11)(unplugin@3.4.0(esbuild@0.28.2)(rolldown@1.2.11)(rollup@4.63.5)(vite@8.3.1))' - citty: 0.2.2(patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac) + citty: 0.2.2(patch_hash=732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272) consola: 3.4.2 rc9: 3.1.0 std-env: 4.2.0 @@ -8153,7 +8153,7 @@ snapshots: '@nuxt/telemetry@2.9.1(@nuxt/kit@4.5.2(magic-string@1.4.2)(magicast@0.5.5)(oxc-parser@0.150.0)(rolldown@1.2.11)(unplugin@3.4.0(esbuild@0.28.2)(rolldown@1.2.11)(rollup@4.63.5)(vite@7.3.6(@types/node@24.19.0)(jiti@2.7.0)(lightningcss@1.33.0)(terser@5.50.0)(yaml@2.9.1))))': dependencies: '@nuxt/kit': 4.5.2(magic-string@1.4.2)(magicast@0.5.5)(oxc-parser@0.150.0)(rolldown@1.2.11)(unplugin@3.4.0(esbuild@0.28.2)(rolldown@1.2.11)(rollup@4.63.5)(vite@7.3.6(@types/node@24.19.0)(jiti@2.7.0)(lightningcss@1.33.0)(terser@5.50.0)(yaml@2.9.1))) - citty: 0.2.2(patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac) + citty: 0.2.2(patch_hash=732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272) consola: 3.4.2 rc9: 3.1.0 std-env: 4.2.0 @@ -9919,7 +9919,7 @@ snapshots: dependencies: consola: 3.4.2 - citty@0.2.2(patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac): {} + citty@0.2.2(patch_hash=732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272): {} cli-boxes@3.0.0: {} @@ -11264,7 +11264,7 @@ snapshots: listhen@1.10.1(srvx@1.0.5): dependencies: '@parcel/watcher-wasm': 2.6.0 - citty: 0.2.2(patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac) + citty: 0.2.2(patch_hash=732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272) consola: 3.4.2 crossws: 0.4.12(srvx@1.0.5) defu: 6.1.7 @@ -11809,7 +11809,7 @@ snapshots: archiver: 7.0.1 c12: 3.3.4(magicast@0.5.5) chokidar: 5.0.0 - citty: 0.2.2(patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac) + citty: 0.2.2(patch_hash=732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272) compatx: 0.2.0 confbox: 0.2.4 consola: 3.4.2 @@ -11922,7 +11922,7 @@ snapshots: archiver: 7.0.1 c12: 3.3.4(magicast@0.5.5) chokidar: 5.0.0 - citty: 0.2.2(patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac) + citty: 0.2.2(patch_hash=732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272) compatx: 0.2.0 confbox: 0.2.4 consola: 3.4.2 @@ -12503,7 +12503,7 @@ snapshots: nypm@0.6.10: dependencies: - citty: 0.2.2(patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac) + citty: 0.2.2(patch_hash=732bf6ead4c65d6364693ea6fdd0f608eaf8c24c0d2c3c4fd0f47e3c57c25272) pathe: 2.0.3 tinyexec: 1.3.1