Documentation
¶
Index ¶
- Constants
- Variables
- func Contains(s []string, str string) bool
- func CopyFile(src, dst string) (err error)
- func CreateDir(path string) error
- func GetDeletedOrModifiedFiles(repoPath string, currentCommitID []byte, isDeletedFiles bool) []string
- func GetHomeDir() string
- func GitCommand(isInteractive bool, currentDir string, args ...string) ([]byte, error)
- func IsGitRepoDir(repoPath string) bool
- func IsRepoUpToDate(repoPath string) bool
- func PromptGetInput(params PromptParams) string
- func RemoveRunes(input string) string
- func RunCommand(binary string, args ...string) (*exec.Cmd, error)
- type NotInstalled
- type PromptParams
Constants ¶
View Source
const ( DotmanDirName = ".dotman" DotFilesBackupDirName = "dotfiles-backup" GitUserName = "dotman" ExternalsDirName = "externals" )
Variables ¶
View Source
var DotfileBackupDir string = DotmanDir + "/" + DotFilesBackupDirName
View Source
var DotmanDir string = HomeDir + "/" + DotmanDirName
View Source
var EnableInteractiveCommand bool = false
View Source
var ExternalsDir string = DotmanDir + "/" + ExternalsDirName
View Source
var GitDir string = "--git-dir=" + DotmanDir
View Source
var HomeDir string = GetHomeDir()
View Source
var WorkTree string = "--work-tree=" + HomeDir
Functions ¶
func GetHomeDir ¶
func GetHomeDir() string
func GitCommand ¶
func IsGitRepoDir ¶
func PromptGetInput ¶
func PromptGetInput(params PromptParams) string
func RemoveRunes ¶
Types ¶
type NotInstalled ¶
type NotInstalled struct {
// contains filtered or unexported fields
}
func (*NotInstalled) Error ¶
func (e *NotInstalled) Error() string
type PromptParams ¶
Click to show internal directories.
Click to hide internal directories.