Documentation
¶
Index ¶
Constants ¶
View Source
const ( ToStringModeList = iota ToStringModeRun )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decl ¶
type Decl struct {
Name string `toml:"name"`
Preset string `toml:"preset"`
Priority Priority `toml:"priority"`
Pwd string `toml:"pwd"`
Args map[string]any `toml:"args"`
// contains filtered or unexported fields
}
Decl is the info for a single declaration
type Decls ¶
type Decls []Decl
Decls is a slice of Decl, just for []Decl to be receiver type
func (Decls) Run ¶
func (decls Decls) Run(opts DeclsRunOpts) error
RunDecls runs the decls by their priority, from high to low. priority filters out other priorities, use nil for no filter
type DeclsListOpts ¶
type DeclsRunOpts ¶
Click to show internal directories.
Click to hide internal directories.