ReadlinePrompt
Defined in: wp-typia-project-tools/src/runtime/cli-prompt.ts:15
Prompt adapter used by CLI scaffold flows and migration wizard flows.
Methods
Section titled “Methods”close()
Section titled “close()”close():
void
Defined in: wp-typia-project-tools/src/runtime/cli-prompt.ts:16
Returns
Section titled “Returns”void
select()
Section titled “select()”select<
T>(message,options,defaultValue?):Promise<T>
Defined in: wp-typia-project-tools/src/runtime/cli-prompt.ts:17
Type Parameters
Section titled “Type Parameters”T extends string
Parameters
Section titled “Parameters”message
Section titled “message”string
options
Section titled “options”PromptOption<T>[]
defaultValue?
Section titled “defaultValue?”number
Returns
Section titled “Returns”Promise<T>
text()
Section titled “text()”text(
message,defaultValue,validate?):Promise<string>
Defined in: wp-typia-project-tools/src/runtime/cli-prompt.ts:18
Parameters
Section titled “Parameters”message
Section titled “message”string
defaultValue
Section titled “defaultValue”string
validate?
Section titled “validate?”ValidateInput
Returns
Section titled “Returns”Promise<string>