MCPcopy Create free account
hub / github.com/bombshell-dev/clack / cancel

Function cancel

packages/prompts/src/messages.ts:24–29  ·  view source on GitHub ↗
(message = '', opts?: CommonOptions)

Source from the content-addressed store, hash-verified

22 * ```
23 */
24export const cancel = (message = '', opts?: CommonOptions) => {
25 const output: Writable = opts?.output ?? process.stdout;
26 const hasGuide = opts?.withGuide ?? settings.withGuide;
27 const prefix = hasGuide ? `${styleText('gray', S_BAR_END)} ` : '';
28 output.write(`${prefix}${styleText('red', message)}\n\n`);
29};
30
31/**
32 * The `intro` function defines the beginning of an interaction.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected