diff --git a/src/index.ts b/src/index.ts index b1a6df6..c734a1a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,5 @@ #!/usr/bin/env node +import { updateSettings } from '@clack/prompts'; import type { CommandDef, SubCommandsDef } from 'citty'; import { defineCommand, runCommand, showUsage } from 'citty'; @@ -16,6 +17,11 @@ import { whoamiCommand } from './commands/whoami.js'; import { telemetry } from './services/telemetry.service.js'; import { CliError, getCliVersion, logger } from './utils/cli.js'; +// @clack/prompts ships the US spelling ("Canceled") for its built-in +// spinner/prompt cancellation message; align it with the British spelling +// ("Cancelled") used everywhere else in the CLI. +updateSettings({ messages: { cancel: 'Cancelled' } }); + const main = defineCommand({ meta: { name: 'dcd',