config

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgsConfig

type ArgsConfig struct {
	Required    bool   `yaml:"required"`
	Default     string `yaml:"default"`
	Passthrough bool   `yaml:"passthrough"`
}

func (ArgsConfig) ProcessArgs

func (v ArgsConfig) ProcessArgs(args []string) ([]string, error)

type Config

type Config struct {
	// contains filtered or unexported fields
}

func LoadConfig

func LoadConfig(filename string) (*Config, error)

func (*Config) FindTask

func (c *Config) FindTask(splitedFullName ...string) (*Task, error)

func (*Config) UnmarshalYAML added in v0.5.0

func (c *Config) UnmarshalYAML(data []byte) error

type Envs added in v0.4.0

func (*Envs) UnmarshalYAML added in v0.6.0

func (e *Envs) UnmarshalYAML(data []byte) error

type Hooks

type Hooks struct {
	Pre  string `yaml:"pre"`
	Post string `yaml:"post"`
}

type Task

type Task struct {
	// contains filtered or unexported fields
}

func (*Task) GetShell

func (t *Task) GetShell() string

func (*Task) UnmarshalYAML added in v0.4.0

func (task *Task) UnmarshalYAML(data []byte) error

func (*Task) Verify

func (t *Task) Verify() error

type Tasks

type Tasks map[string]*Task

type Vars added in v0.7.0

func (*Vars) UnmarshalYAML added in v0.7.0

func (v *Vars) UnmarshalYAML(data []byte) error

Jump to

Keyboard shortcuts

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