cmd

package
v1.8.11 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VersionStr string
	Commit     string
	Date       string
	BuiltBy    string
	Version    *semver.Version
)

Version information.

View Source
var DocsDir = ""

DocsDir is unused when chezmoi is built with embedded docs.

Functions

func Execute

func Execute() error

Execute executes the root command.

Types

type Config

type Config struct {
	SourceDir     string
	DestDir       string
	Umask         permValue
	DryRun        bool
	Follow        bool
	Remove        bool
	Verbose       bool
	Color         string
	Debug         bool
	GPG           chezmoi.GPG
	GPGRecipient  string
	SourceVCS     sourceVCSConfig
	Template      templateConfig
	Merge         mergeConfig
	Bitwarden     bitwardenCmdConfig
	CD            cdCmdConfig
	Diff          diffCmdConfig
	GenericSecret genericSecretCmdConfig
	Gopass        gopassCmdConfig
	KeePassXC     keePassXCCmdConfig
	Lastpass      lastpassCmdConfig
	Onepassword   onepasswordCmdConfig
	Vault         vaultCmdConfig
	Pass          passCmdConfig
	Data          map[string]interface{}

	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
	// contains filtered or unexported fields
}

A Config represents a configuration.

type VCS

type VCS interface {
	AddArgs(string) []string
	CloneArgs(string, string) []string
	CommitArgs(string) []string
	InitArgs() []string
	Initialized(string) (bool, error)
	ParseStatusOutput([]byte) (interface{}, error)
	PullArgs() []string
	PushArgs() []string
	StatusArgs() []string
	VersionArgs() []string
	VersionRegexp() *regexp.Regexp
}

A VCS is a version control system.

Jump to

Keyboard shortcuts

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