Documentation ¶
Overview ¶
Package runner implements a solution to run one or more tasks which have been defined in a configuration file (by default "orbit.yml").
These tasks executes one ore more commands one by one.
Thanks to the generator package, the configuration file may be a data-driven template which is executed at runtime (e.g. no file generated).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrbitRunner ¶
type OrbitRunner struct {
// contains filtered or unexported fields
}
OrbitRunner helps executing tasks.
func NewOrbitRunner ¶
func NewOrbitRunner(context *context.OrbitContext) (*OrbitRunner, error)
NewOrbitRunner creates an instance of OrbitRunner.
func (*OrbitRunner) Print ¶
func (r *OrbitRunner) Print()
Print prints the available tasks from the configuration file to Stdout.
func (*OrbitRunner) Run ¶
func (r *OrbitRunner) Run(names ...string) error
Run runs the given tasks.
Click to show internal directories.
Click to hide internal directories.