subcmd

package
v0.0.0-...-319e03c Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Envvars

func Envvars(envs []string, envvars map[string]string, dir string) error

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

func (SubcmdRunner) RunSubcmd

func (s SubcmdRunner) RunSubcmd(subcmd string, dots []string) error

Jump to

Keyboard shortcuts

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