Documentation / listr2 / ListrTaskMessage
Interface: ListrTaskMessage
Defined in: packages/listr2/src/interfaces/task.interface.ts:122
Task can provide additional information depending on the current state of the Task.
TaskMessage is used to propagate these messages to the renderers for displaying them to the end-user.
Properties
duration?
optionalduration?:number
Defined in: packages/listr2/src/interfaces/task.interface.ts:124
Elapsed time of the current task, whenever the Task completes.
error?
optionalerror?:string
Defined in: packages/listr2/src/interfaces/task.interface.ts:126
Error message from the current task, whenever the Task fails.
skip?
optionalskip?:string
Defined in: packages/listr2/src/interfaces/task.interface.ts:128
Skip message from the current task, whenever the Task skips.
rollback?
optionalrollback?:string
Defined in: packages/listr2/src/interfaces/task.interface.ts:130
Rollback message from the current task, whenever the Task finishes rollback.
retry?
optionalretry?:ListrTaskRetry
Defined in: packages/listr2/src/interfaces/task.interface.ts:132
Retry message from the current task, whenever the Task tries to retry.
paused?
optionalpaused?:number
Defined in: packages/listr2/src/interfaces/task.interface.ts:134
Holds the time as epoch time of when will this task continue to execute.