Documentation
¶
Index ¶
- Variables
- type Folder
- type FolderCollection
- func (fc *FolderCollection) Find(words []string) (folders []*Folder)
- func (fc *FolderCollection) FixIgnored()
- func (fc *FolderCollection) FixPathsLoad()
- func (fc *FolderCollection) Get(path string) (*Folder, error)
- func (fc *FolderCollection) GetChildren(folder *Folder) []*Folder
- func (fc *FolderCollection) GetNearestParent(folder string, keepFinding bool) (*Folder, error)
- func (fc *FolderCollection) GetParent(folder *Folder) (*Folder, error)
- func (fc *FolderCollection) String() string
- func (fc *FolderCollection) Sync() error
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowedCommands = func() []string { keys := make([]string, 0, len(AllowedCommandsFunctions)) for k := range AllowedCommandsFunctions { keys = append(keys, k) } return keys }()
Functions ¶
This section is empty.
Types ¶
type Folder ¶
type Folder struct {
Path string `yaml:"-"`
Ignore bool `yaml:"ignore"`
IgnoreSubFolders bool `yaml:"ignore_sub"`
Command string `yaml:"cmd"`
}
func (*Folder) SetCommand ¶
type FolderCollection ¶
type FolderCollection struct {
Root string `yaml:"root"`
Folders map[string]*Folder `yaml:"folders"`
MaxDepth int `yaml:"maxSubLevel"`
}
func CreateCollection ¶
func CreateCollection(root string, maxSubLevel int) *FolderCollection
func (*FolderCollection) Find ¶
func (fc *FolderCollection) Find(words []string) (folders []*Folder)
func (*FolderCollection) FixIgnored ¶
func (fc *FolderCollection) FixIgnored()
func (*FolderCollection) FixPathsLoad ¶
func (fc *FolderCollection) FixPathsLoad()
func (*FolderCollection) GetChildren ¶
func (fc *FolderCollection) GetChildren(folder *Folder) []*Folder
func (*FolderCollection) GetNearestParent ¶
func (fc *FolderCollection) GetNearestParent(folder string, keepFinding bool) (*Folder, error)
func (*FolderCollection) GetParent ¶
func (fc *FolderCollection) GetParent(folder *Folder) (*Folder, error)
func (*FolderCollection) String ¶ added in v1.4.0
func (fc *FolderCollection) String() string
func (*FolderCollection) Sync ¶
func (fc *FolderCollection) Sync() error
Click to show internal directories.
Click to hide internal directories.