Skip to content

EditorOpts

Defined in: packages/prompt/src/prompts/editor.ts:11

Options for opening the system editor.

optional clearPromptOnDone?: boolean

Defined in: packages/prompt/src/core/index.ts:37

If the screen should be cleared when finishing a prompt.

CoreOpts.clearPromptOnDone


optional default?: string

Defined in: packages/prompt/src/core/index.ts:24

The default value.

CoreOpts.default


optional inline?: boolean

Defined in: packages/prompt/src/prompts/editor.ts:19

If editing should be inline. Omit or set to false to open the default editor.


optional input?: ReadStream

Defined in: packages/prompt/src/core/index.ts:29

The standard input. Defaults to process.stdin.

CoreOpts.input


message: string

Defined in: packages/prompt/src/core/index.ts:12

The message of the prompt.

CoreOpts.message


optional output?: WriteStream

Defined in: packages/prompt/src/core/index.ts:33

The standard output. Defaults to process.stdout.

CoreOpts.output


optional required?: boolean

Defined in: packages/prompt/src/prompts/editor.ts:15

If the input is required for continuing or not.


optional signal?: AbortSignal

Defined in: packages/prompt/src/core/index.ts:41

An AbortSignal to cancel the prompt.

CoreOpts.signal


optional theme?: Theme

Defined in: packages/prompt/src/core/index.ts:20

The theme of the prompt.

CoreOpts.theme


optional validate?: StandardSchemaV1<any, string> | ((value) => string | boolean)

Defined in: packages/prompt/src/core/index.ts:16

A validator function, or a Standard Schema validator.

CoreOpts.validate