run

package
v0.0.0-...-5db00e0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "run 'CMD' [flags]",
	Short: "Run a task.",
	RunE: func(cmd *cobra.Command, args []string) error {
		err := Run(args)
		if err != nil {

		}
		return err
	},
	DisableFlagParsing: true,
}

Cmd represents the run command

View Source
var ErrKeyFmt = errors.New("Arguments passed to --in, --out and --env must be of the form: KEY=VALUE")

ErrKeyFmt describes an error in input/output/env/tag flag formatting

View Source
var ErrStorageScheme = errors.New("File paths must be prefixed with one of:\n file://\n gs://\n s3://")

ErrStorageScheme describes an error in supported storage URL schemes.

Functions

func DuplicateKeyErr

func DuplicateKeyErr(key string) error

DuplicateKeyErr returns a new error describing conflicting keys for env. vars., inputs, and outputs.

func Parse

func Parse(args []string) ([]*tes.Task, error)

Parse task a list of CLI args/flags, and converts them to tasks.

func ParseString

func ParseString(s string) ([]*tes.Task, error)

ParseString calls shellquote.Split(s) and passes those args to Parse().

func Run

func Run(args []string) error

Run takes a list of CLI args/flags, converts them to tasks and runs them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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