Documentation
¶
Index ¶
- Constants
- Variables
- func Clean(repo_input string) error
- func Clone(spec, specified string, https bool) error
- func Link(repo_input string, specified []string, dry bool) error
- func List(specified string) error
- func Update(repo_input string) error
- func Version() string
- type Mappings
- type MappingsJson
- type NothingLinkedError
- type Repository
Constants ¶
View Source
const PLATFORM_UNIX_LIKE = "unixlike"
A special platform name used commonly for Unix-like platform
Variables ¶
View Source
var DefaultMappings = map[string]MappingsJson{ "windows": MappingsJson{ ".gvimrc": "~/vimfiles/gvimrc", ".vim": "~/vimfiles", ".vimrc": "~/vimfiles/vimrc", }, PLATFORM_UNIX_LIKE: MappingsJson{ ".agignore": "~/.agignore", ".bash_login": "~/.bash_login", ".bash_profile": "~/.bash_profile", ".bashrc": "~/.bashrc", ".emacs.d": "~/.emacs.d", ".emacs.el": "~/.emacs.d/init.el", ".eslintrc": "~/.eslintrc", ".eslintrc.json": "~/.eslintrc.json", ".eslintrc.yml": "~/.eslintrc.yml", ".gvimrc": "~/.gvimrc", ".npmrc": "~/.npmrc", ".profile": "~/.profile", ".pryrc": "~/.pryrc", ".pylintrc": "~/.pylintrc", ".tmux.conf": "~/.tmux.conf", ".vim": "~/.vim", ".vimrc": "~/.vimrc", ".zlogin": "~/.zlogin", ".zprofile": "~/.zprofile", ".zshenv": "~/.zshenv", ".zshrc": "~/.zshrc", "agignore": "~/.agignore", "bash_login": "~/.bash_login", "bash_profile": "~/.bash_profile", "bashrc": "~/.bashrc", "emacs.d": "~/.emacs.d", "emacs.el": "~/.emacs.d/init.el", "eslintrc": "~/.eslintrc", "eslintrc.json": "~/.eslintrc.json", "eslintrc.yml": "~/.eslintrc.yml", "gvimrc": "~/.gvimrc", "npmrc": "~/.npmrc", "profile": "~/.profile", "pryrc": "~/.pryrc", "pylintrc": "~/.pylintrc", "tmux.conf": "~/.tmux.conf", "vim": "~/.vim", "vimrc": "~/.vimrc", "zlogin": "~/.zlogin", "zprofile": "~/.zprofile", "zshenv": "~/.zshenv", "zshrc": "~/.zshrc", "init.el": "~/.emacs.d/init.el", "peco": "~/.config/peco", }, "linux": MappingsJson{ ".Xmodmap": "~/.Xmodmap", ".Xresources": "~/.Xresources", "Xmodmap": "~/.Xmodmap", "Xresources": "~/.Xresources", "rc.lua": "~/.config/rc.lua", }, "darwin": MappingsJson{ ".htoprc": "~/.htoprc", "htoprc": "~/.htoprc", }, }
Functions ¶
Types ¶
type Mappings ¶
func GetMappingsForPlatform ¶
func (Mappings) ActualLinks ¶
func (Mappings) CreateAllLinks ¶
func (Mappings) CreateSomeLinks ¶
type MappingsJson ¶
type NothingLinkedError ¶
type NothingLinkedError struct {
RepoPath string
}
func (NothingLinkedError) Error ¶
func (err NothingLinkedError) Error() string
type Repository ¶
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.