run

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build added in v0.3.0

func Build(cmd *cobra.Command, e *ox.Elk, tasks []string) (map[string]engine.Logger, error)

Build loads ox object with the values

func Command added in v0.6.0

func Command() *cobra.Command

Command returns a cobra command for `run` sub command

func DelayStart added in v0.3.0

func DelayStart(delay time.Duration, start string)

DelayStart sleep the program by an amount of time

func Detached added in v0.3.0

func Detached() error

Detached runs ox in detached mode

func GetTimeFromString added in v0.3.0

func GetTimeFromString(input string) (time.Time, error)

GetTimeFromString transform a string to a duration

func Task added in v0.3.0

func Task(ctx context.Context, cliEngine *engine.Engine, task string)

Task runs a task on the engine

func TaskWG added in v0.4.0

func TaskWG(ctx context.Context, cliEngine *engine.Engine, task string, wg *sync.WaitGroup, isWatch bool)

TaskWG runs task with a wait group

func Validate added in v0.3.0

func Validate(cmd *cobra.Command, tasks []string) error

Validate if the arguments are valid

func Watch added in v0.3.0

func Watch(ctx context.Context, cliEngine *engine.Engine, task string, t ox.Task)

Watch runs ox in watch mode

Types

This section is empty.

Jump to

Keyboard shortcuts

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