Documentation / listr2 / ListrSubClassOptions
Interface: ListrSubClassOptions<Ctx, Renderer, FallbackRenderer>
Defined in: packages/listr2/src/interfaces/listr.interface.ts:116
Subtasks has reduced set options where the missing ones are explicitly set by the base class.
Extends
Omit<ListrOptions<Ctx>,"registerSignalListeners"|"fallbackRendererCondition"|"silentRendererCondition"|"forceTTY"|"forceUnicode">.ListrPrimaryRendererOptions<Renderer>.ListrSecondaryRendererOptions<FallbackRenderer>
Type Parameters
Ctx
Ctx = ListrContext
Renderer
Renderer extends ListrRendererValue = ListrPrimaryRendererValue
FallbackRenderer
FallbackRenderer extends ListrRendererValue = ListrSecondaryRendererValue
Properties
ctx?
optionalctx:Ctx
Defined in: packages/listr2/src/interfaces/listr.interface.ts:24
Inject a context through this options wrapper.
Default Value
{}
See
https://listr2.kilic.dev/listr/context.html
Inherited from
Omit.ctx
concurrent?
optionalconcurrent:number|boolean
Defined in: packages/listr2/src/interfaces/listr.interface.ts:34
Concurrency limits how many tasks will be running in parallel.
falsewill only run a single task at a time.truewill set it toInfinityto run all the tasks in parallel.- Given a
numberit will limit the concurrency to that number.
Default Value
false
Inherited from
exitOnError?
optionalexitOnError:boolean
Defined in: packages/listr2/src/interfaces/listr.interface.ts:43
Determine the default behavior of exiting on errors.
truewill exit the current Listr whenever it encounters an error.falsewill continue the execution of current Listr if it encounters an error.
Default Value
true
Inherited from
exitAfterRollback?
optionalexitAfterRollback:boolean
Defined in: packages/listr2/src/interfaces/listr.interface.ts:55
Determine the behavior of exiting after rollback actions.
This is independent of exitOnError, since failure of a rollback can be a more critical operation comparing to failing a single task.
truewill stop the execution whenever a rollback happens.falsewill continue after successfully recovering from a rollback.
Default Value
true
Inherited from
ListrOptions.exitAfterRollback
collectErrors?
optionalcollectErrors:false|"minimal"|"full"
Defined in: packages/listr2/src/interfaces/listr.interface.ts:66
Collects errors inside the Listr.errors.
falsewill collect no errors.minimalwill only collect the error message and the location.fullwill clone the current context and task in to the error instance.
Default Value
false
See
https://listr2.kilic.dev/task/error-handling.html#collected-errors
Inherited from
rendererOptions?
optionalrendererOptions:ListrGetRendererOptions<Renderer>
Defined in: packages/listr2/src/interfaces/renderer.interface.ts:96
Renderer options depending on the current renderer.
Inherited from
ListrPrimaryRendererOptions.rendererOptions
fallbackRendererOptions?
optionalfallbackRendererOptions:ListrGetRendererOptions<FallbackRenderer>
Defined in: packages/listr2/src/interfaces/renderer.interface.ts:114
Renderer options depending on the fallback renderer.