Documentation
¶
Index ¶
- Constants
- Variables
- func Clean(repoInput string) error
- func Clone(spec, specified string, https bool) error
- func Link(repoInput string, specified []string, dry bool) error
- func List(specified string) error
- func Update(repoInput string) error
- func Version() string
- type Mappings
- type MappingsJSON
- type NothingLinkedError
- type Repository
Constants ¶
View Source
const UnixLikePlatformName = "unixlike"
UnixLikePlatformName is a special platform name used commonly for Unix-like platform
Variables ¶
View Source
var DefaultMappings = map[string]MappingsJSON{ "windows": MappingsJSON{ ".gvimrc": []string{"~/vimfiles/gvimrc"}, ".vim": []string{"~/vimfiles"}, ".vimrc": []string{"~/vimfiles/vimrc"}, }, UnixLikePlatformName: MappingsJSON{ ".agignore": []string{"~/.agignore"}, ".bash_login": []string{"~/.bash_login"}, ".bash_profile": []string{"~/.bash_profile"}, ".bashrc": []string{"~/.bashrc"}, ".emacs.d": []string{"~/.emacs.d"}, ".emacs.el": []string{"~/.emacs.d/init.el"}, ".eslintrc": []string{"~/.eslintrc"}, ".eslintrc.json": []string{"~/.eslintrc.json"}, ".eslintrc.yml": []string{"~/.eslintrc.yml"}, ".gvimrc": []string{"~/.gvimrc"}, ".npmrc": []string{"~/.npmrc"}, ".profile": []string{"~/.profile"}, ".pryrc": []string{"~/.pryrc"}, ".pylintrc": []string{"~/.pylintrc"}, ".tmux.conf": []string{"~/.tmux.conf"}, ".vim": []string{"~/.vim"}, ".vimrc": []string{"~/.vimrc"}, ".zlogin": []string{"~/.zlogin"}, ".zprofile": []string{"~/.zprofile"}, ".zshenv": []string{"~/.zshenv"}, ".zshrc": []string{"~/.zshrc"}, "agignore": []string{"~/.agignore"}, "bash_login": []string{"~/.bash_login"}, "bash_profile": []string{"~/.bash_profile"}, "bashrc": []string{"~/.bashrc"}, "emacs.d": []string{"~/.emacs.d"}, "emacs.el": []string{"~/.emacs.d/init.el"}, "eslintrc": []string{"~/.eslintrc"}, "eslintrc.json": []string{"~/.eslintrc.json"}, "eslintrc.yml": []string{"~/.eslintrc.yml"}, "gvimrc": []string{"~/.gvimrc"}, "npmrc": []string{"~/.npmrc"}, "profile": []string{"~/.profile"}, "pryrc": []string{"~/.pryrc"}, "pylintrc": []string{"~/.pylintrc"}, "tmux.conf": []string{"~/.tmux.conf"}, "vim": []string{"~/.vim"}, "vimrc": []string{"~/.vimrc"}, "zlogin": []string{"~/.zlogin"}, "zprofile": []string{"~/.zprofile"}, "zshenv": []string{"~/.zshenv"}, "zshrc": []string{"~/.zshrc"}, "init.el": []string{"~/.emacs.d/init.el"}, "peco": []string{"~/.config/peco"}, }, "linux": MappingsJSON{ ".Xmodmap": []string{"~/.Xmodmap"}, ".Xresources": []string{"~/.Xresources"}, "Xmodmap": []string{"~/.Xmodmap"}, "Xresources": []string{"~/.Xresources"}, "rc.lua": []string{"~/.config/rc.lua"}, }, "darwin": MappingsJSON{ ".htoprc": []string{"~/.htoprc"}, "htoprc": []string{"~/.htoprc"}, }, }
Functions ¶
Types ¶
type Mappings ¶
func GetMappingsForPlatform ¶
func (Mappings) ActualLinks ¶
func (Mappings) CreateAllLinks ¶
func (Mappings) CreateSomeLinks ¶
type MappingsJSON ¶ added in v0.2.1
type NothingLinkedError ¶
type NothingLinkedError struct {
RepoPath string
}
func (NothingLinkedError) Error ¶
func (err NothingLinkedError) Error() string
type Repository ¶
Repository represents a repository on local filesystem TODO: Enable to specify branch name?
func NewRepository ¶
func NewRepository(spec, specified string, https bool) (*Repository, error)
func (*Repository) Clone ¶
func (repo *Repository) Clone() error
Click to show internal directories.
Click to hide internal directories.