Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -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' } });
Comment thread
riglar marked this conversation as resolved.

const main = defineCommand({
meta: {
name: 'dcd',
Expand Down
Loading