Documentation
¶
Index ¶
- func AdoptChanges(target AbsolutePath, dotfilesSource AbsolutePath) error
- func Clean(fullClean bool)
- func EnsureParentDir(target AbsolutePath) bool
- func Install(fullClean bool)
- func RemoveAndCleanup(removeFile AbsolutePath, stopAt AbsolutePath) bool
- func ReplaceWithSymlink(target AbsolutePath, dotfilesSource AbsolutePath) error
- func ScanDirectory(dir AbsolutePath, filter *FileFilter) []RelativePath
- type FileFilter
- type FileMapping
- type GetFilesFunc
- type HostnameFilter
- type SourcePath
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdoptChanges ¶
func AdoptChanges(target AbsolutePath, dotfilesSource AbsolutePath) error
func EnsureParentDir ¶
func EnsureParentDir(target AbsolutePath) bool
func RemoveAndCleanup ¶
func RemoveAndCleanup(removeFile AbsolutePath, stopAt AbsolutePath) bool
func ReplaceWithSymlink ¶
func ReplaceWithSymlink(target AbsolutePath, dotfilesSource AbsolutePath) error
func ScanDirectory ¶
func ScanDirectory(dir AbsolutePath, filter *FileFilter) []RelativePath
Types ¶
type FileFilter ¶
type FileFilter struct {
IgnoreHidden bool
IgnoreDootCrypt bool
ExploreExcludedDirs bool
ExcludeGlobs glob_collection.GlobCollection
IncludeGlobs glob_collection.GlobCollection
}
func CreateFilter ¶
func CreateFilter(config *config.Config, ignoreDootCrypt bool) FileFilter
type FileMapping ¶
type FileMapping struct {
// contains filtered or unexported fields
}
func NewFileMapping ¶
func NewFileMapping(dotfilesDir AbsolutePath, config *config.Config, sourceFiles []RelativePath) FileMapping
func (*FileMapping) Add ¶
func (fm *FileMapping) Add(relativeSource RelativePath)
func (*FileMapping) GetInstalledTargets ¶
func (fm *FileMapping) GetInstalledTargets() SymlinkCollection
func (*FileMapping) InstallNewLinks ¶
func (fm *FileMapping) InstallNewLinks() []AbsolutePath
func (*FileMapping) RemoveStaleLinks ¶
func (fm *FileMapping) RemoveStaleLinks(previousLinks *SymlinkCollection) []AbsolutePath
type GetFilesFunc ¶
type HostnameFilter ¶
type HostnameFilter struct {
// contains filtered or unexported fields
}
type SourcePath ¶
type SourcePath struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.