Documentation
¶
Index ¶
- func ApplyConfig(root *TreeNode, cfg *Config)
- func CountSelected(root *TreeNode) (selected, total int)
- func GeneratePatterns(root *TreeNode) (includes, excludes []string)
- func RunTUI(rootPath, configPath string, noConfig bool, opts BuildTreeOpts) error
- func SaveConfig(path string, cfg *Config) error
- func SetAllState(root *TreeNode, state NodeState)
- func SetInitialState(root *TreeNode, includePatterns, excludePatterns []string)
- func Toggle(node *TreeNode)
- func ToggleExpand(node *TreeNode)
- type BuildTreeOpts
- type Config
- type ConfigOptions
- type Model
- type NodeState
- type TreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyConfig ¶
func CountSelected ¶
func GeneratePatterns ¶
func SaveConfig ¶
func SetAllState ¶
func SetInitialState ¶
func ToggleExpand ¶
func ToggleExpand(node *TreeNode)
Types ¶
type BuildTreeOpts ¶
type Config ¶
type Config struct {
Include []string `yaml:"include,omitempty"`
Exclude []string `yaml:"exclude,omitempty"`
Options *ConfigOptions `yaml:"options,omitempty"`
}
func LoadConfig ¶
type ConfigOptions ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func NewModel ¶
func NewModel(rootPath, configPath string, noConfig bool, opts BuildTreeOpts) (Model, error)
func (Model) ConfigPath ¶
Click to show internal directories.
Click to hide internal directories.