install

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdoptChanges

func AdoptChanges(target AbsolutePath, dotfilesSource AbsolutePath) error

func Clean

func Clean(fullClean bool)

func EnsureParentDir

func EnsureParentDir(target AbsolutePath) bool

func Install

func Install(fullClean bool)

func RemoveAndCleanup

func RemoveAndCleanup(removeFile AbsolutePath, stopAt AbsolutePath) bool
func ReplaceWithSymlink(target AbsolutePath, dotfilesSource AbsolutePath) error

https://stackoverflow.com/a/58148921

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 (fm *FileMapping) InstallNewLinks() []AbsolutePath
func (fm *FileMapping) RemoveStaleLinks(previousLinks *SymlinkCollection) []AbsolutePath

type GetFilesFunc

type GetFilesFunc func(*config.Config, AbsolutePath) []RelativePath

type HostnameFilter

type HostnameFilter struct {
	// contains filtered or unexported fields
}

type SourcePath

type SourcePath struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL