Module spooder

A simple task runner for Lua

Functions

tasks () Returns an iterator over all tasks
newtask (name, task) Registers a new task
run (name, ...) Runs a given task with provided arguments.

Tables

task Describes a task.


Functions

tasks ()
Returns an iterator over all tasks
newtask (name, task)
Registers a new task

Parameters:

  • name string The name of the new task
  • task task A new task to insert with the given name
run (name, ...)
Runs a given task with provided arguments.

Parameters:

  • name string The task's name
  • ... Arguments to pass to the task's step functions

Tables

task
Describes a task. Steps to be performed should be stored as functions at sequential numeric indices.

Fields:

  • description string A short description of what the task does.
  • depends table The names of other tasks to complete first. For single dependencies this can be a string.
generated by LDoc 1.5.0 Last updated 2023-07-12 16:09:46