Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DotfileDeployer ¶
type DotfileDeployer struct {
// contains filtered or unexported fields
}
func NewDotfileDeployer ¶
func NewDotfileDeployer( conf config.DotConfig, dotRoot string, expand dotfile.PathExpander, own OwnershipManager, dry bool, ) DotfileDeployer
NewDotfileDeployer creates a DotfileDeployer that uses the conf to know how to resolve and deploy the files.
func (DotfileDeployer) DeployCmd ¶
func (d DotfileDeployer) DeployCmd(dot string) error
func (DotfileDeployer) DeployFiles ¶
func (d DotfileDeployer) DeployFiles(dot string, files []string) error
DeployFiles either copies or creates links of files within the dot file tree outside of that file tree. dot is the name of the dot that is being deployed. files is a slice of all of the files (not including directories) within the dot directory. An empty slice represents an empty directory, and a nil one represents a non-existent directory.
type DotfileUndeployer ¶
type DotfileUndeployer struct {
// contains filtered or unexported fields
}
func (DotfileUndeployer) Undeploy ¶
func (d DotfileUndeployer) Undeploy(dot string) error
type OwnershipManager ¶
type OwnershipManager struct {
// contains filtered or unexported fields
}
func (OwnershipManager) DisownDot ¶
func (o OwnershipManager) DisownDot(dot string) error
func (OwnershipManager) EnsureOwnership ¶
func (o OwnershipManager) EnsureOwnership(files []string, dot string) error
takeOwnership takes ownership of the
func (OwnershipManager) OwnedFiles ¶
func (o OwnershipManager) OwnedFiles() (map[string][]string, error)
type PackageInstaller ¶
type PackageInstaller struct {
// contains filtered or unexported fields
}
func NewPackageInstaller ¶
func NewPackageInstaller( conf config.Config, dry bool, ) (p PackageInstaller, err error)
func (PackageInstaller) Install ¶
func (p PackageInstaller) Install(dots []string) error
type SubcmdRunner ¶
type SubcmdRunner struct {
// contains filtered or unexported fields
}
func NewSubcmdRunner ¶
func NewSubcmdRunner(conf config.Config, dir string, dry, force bool) SubcmdRunner
Click to show internal directories.
Click to hide internal directories.