runner

package
v3.3.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL