Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Confirm ¶ added in v0.0.2
Confirm prompts the user for a single keypress of y for yes or cancels
func Makefile ¶
func Makefile(tasks ...Task)
Makefile will execute the provided tasks much like make with dependencies, as per the Task behavior declared above
Types ¶
type Task ¶
type Task struct {
// Name the name of the tasks, which is used to refer to it everywhere: running, specifying dependencies, etc.
Name string
// Description provides a brief summary or purpose of the task
Description string
// Dependencies is a list of tasks that will be executed and must complete successfully before this task executes
Dependencies []string
// RunsOn when a task in RunsOn is executed, it will cause this task to be executed as a dependency
RunsOn []string
// Tasks allows a hierarchy of tasks to be registered together; subtasks will be prefixed with the "<parent name>:",
// but their name will be added to the phase matching the name itself, so `binny` -> `clean` results in
// `binny:clean` and `clean` execution for the subtask.
Tasks []Task
// Run is the function to execute this task's functionality
Run func()
}
Click to show internal directories.
Click to hide internal directories.