config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Steps []*Step         `mapstructure:"steps"`
	Env   []*types.KeyVal `mapstructure:"env" yaml:"env,omitempty"`
}

func Load

func Load(filePath string) (*Config, error)

func (*Config) String

func (c *Config) String() string

func (*Config) ToTypesSteps

func (c *Config) ToTypesSteps() ([]*types.Step, error)

type Step

type Step struct {
	Name     string `mapstructure:"name" yaml:"name,omitempty"`
	Cmd      string `mapstructure:"cmd" yaml:"cmd,omitempty"`
	Delay    string `mapstructure:"delay" yaml:"delay,omitempty"`
	Retries  int    `mapstructure:"retries" yaml:"retries,omitempty"`
	Interval string `mapstructure:"interval" yaml:"interval,omitempty"`
}

Jump to

Keyboard shortcuts

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