Documentation
¶
Index ¶
- func CollectSelectors(node *Node) []string
- func Run(root string, project *manifest.Manifest, catalog modecatalog.CapabilityCatalog, ...) error
- type Node
- type Row
- type SelectorState
- type State
- func (state *State) Apply(raw string, enabled bool) error
- func (state *State) Clear(raw string) error
- func (state *State) Create(name string) error
- func (state *State) Definition() mode.Definition
- func (state *State) Delete() error
- func (state *State) Names() []string
- func (state *State) ReadOnly() bool
- func (state *State) Rename(name string) error
- func (state State) SelectorState(canonical string) SelectorState
- func (state *State) SetBase(base mode.Base) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectSelectors ¶
func Run ¶
func Run(root string, project *manifest.Manifest, catalog modecatalog.CapabilityCatalog, selected string) error
Types ¶
type Node ¶
func BuildTree ¶
func BuildTree(catalog modecatalog.CapabilityCatalog) []Node
type SelectorState ¶
type SelectorState uint8
const ( Neutral SelectorState = iota ExplicitEnable ExplicitDisable )
type State ¶
type State struct {
Selected string
Modes map[string]mode.Definition
Dirty bool
}
func (*State) Definition ¶
func (state *State) Definition() mode.Definition
func (State) SelectorState ¶
func (state State) SelectorState(canonical string) SelectorState
Click to show internal directories.
Click to hide internal directories.