Function
tasks
(tasks: Task[], opts?: CommonOptions)
Source from the content-addressed store, hash-verified
| 21 | * Define a group of tasks to be executed |
| 22 | */ |
| 23 | export const tasks = async (tasks: Task[], opts?: CommonOptions) => { |
| 24 | for (const task of tasks) { |
| 25 | if (task.enabled === false) continue; |
| 26 | |
| 27 | const s = spinner(opts); |
| 28 | s.start(task.title); |
| 29 | const result = await task.task(s.message); |
| 30 | s.stop(result || task.title); |
| 31 | } |
| 32 | }; |
Callers
nothing calls this directly
Tested by
no test coverage detected