Class TaskWrapper<Ctx, Renderer>
Constructors
constructor
Type parameters
Parameters
Returns TaskWrapper<Ctx, Renderer>
Properties
errors
task
Accessors
output
- get output(): string
- set output(data: string): void
Returns string
Parameters
Returns void
title
- get title(): string
- set title(data: string): void
Returns string
Parameters
Returns void
Methods
cancelPrompt
- cancelPrompt(throwError?: boolean): void
Parameters
Optional throwError: boolean
Returns void
isRetrying
- isRetrying(): undefined | { count: number; withError?: any }
Returns undefined | { count: number; withError?: any }
newListr
- newListr<NewCtx>(task: ListrTask<NewCtx, Renderer> | ListrTask<NewCtx, Renderer>[] | ((parent: Omit<TaskWrapper<Ctx, Renderer>, "skip" | "enabled">) => ListrTask<NewCtx, Renderer> | ListrTask<NewCtx, Renderer>[]), options?: ListrSubClassOptions<NewCtx, Renderer>): Listr<NewCtx, any, any>
Type parameters
Parameters
Returns Listr<NewCtx, any, any>
prompt
Type parameters
Parameters
Returns Promise<T>
report
Parameters
Returns void
run
- run(ctx: Ctx): Promise<void>
Parameters
Returns Promise<void>
skip
- skip(message?: string): void
Parameters
Returns void
stdout
- stdout(): WriteStream & WritableStream
Returns WriteStream & WritableStream
Extend the task to have more functionality while accessing from the outside.