config

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 7 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 {
	Version  string          `yaml:"version" required:"true"`
	Actions  []action.Action `yaml:"actions"`
	Verbose  bool            `yaml:"verbose" default:"false"`
	Timezone string          `yaml:"timezone" default:"UTC"`
}

func LoadConfig

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

func (*Config) GetAction

func (cfg *Config) GetAction(name string) (*action.Action, error)

func (*Config) PrintActionTable

func (cfg *Config) PrintActionTable() error

func (*Config) Validate

func (cfg *Config) Validate() error

Jump to

Keyboard shortcuts

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