handler

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main() error

Types

type Arg

type Arg struct {
	Name       string
	Usage      string
	Default    string
	InputEnvs  []string `yaml:"input_envs"`
	ScriptEnvs []string `yaml:"script_envs"`
	Required   bool
	Prompt     Prompt
}

type Config

type Config struct {
	Tasks       []Task
	InputEnvs   []string `yaml:"input_envs"`
	ScriptEnvs  []string `yaml:"script_envs"`
	Environment map[string]string
	Timeout     Timeout
}

type Flag

type Flag struct {
	Name       string
	Short      string
	Usage      string
	Default    string
	InputEnvs  []string `yaml:"input_envs"`
	ScriptEnvs []string `yaml:"script_envs"`
	Type       string
	Required   bool
	Prompt     Prompt
}

type Prompt added in v0.9.0

type Prompt struct {
	Type    string
	Message string
	Help    string
	Options []string
}

type Task

type Task struct {
	Name        string
	Short       string
	Description string
	Usage       string
	Flags       []Flag
	Args        []Arg
	InputEnvs   []string `yaml:"input_envs"`
	ScriptEnvs  []string `yaml:"script_envs"`
	Environment map[string]string
	Script      string
	Timeout     Timeout
}

type Timeout added in v0.7.0

type Timeout struct {
	Duration  time.Duration
	KillAfter time.Duration `yaml:"kill_after"`
}

Jump to

Keyboard shortcuts

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