Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
Runtime encapsulates the state of the tool
func New ¶
New creates a new Runtime and returns it. This new context uses the working dir that is passed as a parameter. After instantiation, the context will be ready to load additional files.
func (*Runtime) HasTask ¶
HasTask tells whether the receiver has a task with the given task ID, i.e. whether any steps have been registered for that name.
func (*Runtime) RunLiterateFile ¶
RunLiterateFile interprets the given file as literate Markdown with intermixed Lua code and runs that code.
func (*Runtime) RunTask ¶
RunTask executes the task with the given ID. It is perfectly fine to execute a task without any steps, but a warning will be shown. Any error that occurs during task processing is returned.
func (*Runtime) TaskIDList ¶
TaskIDList gives back a list of tasks that are defined at the time of calling
type Step ¶
type Step interface { Take(i *Runtime) error // ShowStartInfo displays some information on the default logger that identifies the step ShowStartInfo() }
Step represents one action taken by the tool.
func DecodeWrapStep ¶
DecodeWrapStep unmarshals the wrap step encoded in in (in JSON), and gives it back. This function panics if there are errors during decoding.