Versions in this module Expand all Collapse all v0 v0.0.2 Sep 13, 2018 Changes in this version + var Action string + var DecodeErrorUnused = true + var DecodeWeaklyTypedInput = true + var ErrDirNotEmpty = errors.New("directory not empty") + var ErrExist = errors.New("already exists") + var ErrFileExist = errors.New("file exists") + var ErrInvalid = errors.New("invalid file") + var ErrLinkExist = errors.New("link exists") + var ErrNotEmpty = errors.New("not empty") + var ErrNotExist = errors.New("does not exists") + var ErrSkip = errors.New("skip") + var Stderr io.Writer = os.Stderr + var Stdin io.Reader = os.Stdin + var Stdout io.Writer = os.Stdout + func FindConfig(path, dirname string) string + func IsExist(err error) bool + func IsNotExist(err error) bool + func IsSkip(err error) bool + type Block struct + Data string + Target string + func NewBlock(s, d string) *Block + func (t *Block) Do() error + func (t *Block) Init() error + func (t *Block) Status() error + func (t *Block) String() string + func (t *Block) Undo() error + type Config struct + Git *url.URL + Platforms map[string][]*Role + Roles []*Role + Source string + Target string + func NewConfig(path, dirname string) (*Config, error) + func (c *Config) FileUsed() string + func (c *Config) Load() error + func (c *Config) ParseRoles() error + func (c *Config) PrepareRoles() error + func (c *Config) SetRoleFile(name string) + type Copy struct + Mode os.FileMode + Source string + Target string + func (t *Copy) Do() error + func (t *Copy) Init() error + func (t *Copy) RemoteString() string + func (t *Copy) Status() error + func (t *Copy) String() string + func (t *Copy) Undo() error + type DiffError struct + Dst string + Full string + Src string + func (e *DiffError) Error() string + func (e *DiffError) String() string + type Dir struct + Path string + func NewDir(s string) *Dir + func (t *Dir) Do() error + func (t *Dir) Init() error + func (t *Dir) Status() error + func (t *Dir) String() string + func (t *Dir) Undo() error + type Env map[string]string + func NewEnv(i interface{}) *Env + type Hook struct + Command string + Env *Env + ExecDir string + Shell string + func NewHook(s string) *Hook + func (t *Hook) Do() error + func (t *Hook) Init() error + func (t *Hook) Status() error + func (t *Hook) String() string + func (t *Hook) Undo() error + type Line struct + Data string + Target string + func NewLine(s, d string) *Line + func (t *Line) Do() error + func (t *Line) Init() error + func (t *Line) Status() error + func (t *Line) String() string + func (t *Line) Undo() error + type Link struct + Source string + Target string + func NewLink(s string) *Link + func (t *Link) Do() error + func (t *Link) Init() error + func (t *Link) Status() error + func (t *Link) String() string + func (t *Link) Undo() error + type OpError struct + Err error + Op string + Task Tasker + func (e *OpError) Error() string + type Pkg struct + Args []string + Manager string + Name []string + func NewPkg(s string) *Pkg + func (t *Pkg) Do() error + func (t *Pkg) Init() error + func (t *Pkg) Status() error + func (t *Pkg) String() string + func (t *Pkg) Undo() error + type Role struct + Blocks []*Block + Deps []string + Dirs []*Dir + Disabled bool + Env *Env + Files []*Copy + Git *url.URL + IncludeVars []string + Install []*Hook + Lines []*Line + Links []*Link + Name string + OS []string + Path string + Pkgs []*Pkg + PostInstall []*Hook + PostRemove []*Hook + Remove []*Hook + Tpls []*Tpl + URL string + Vars *Vars + func (r *Role) GetConfigFile() string + func (r *Role) Init() error + func (r *Role) Load() error + func (r *Role) Ok() bool + func (r *Role) Parse(target string) error + func (r *Role) ParseBlocks(target string) error + func (r *Role) ParseDirs(target string) error + func (r *Role) ParseEnv() error + func (r *Role) ParseFiles(target string) error + func (r *Role) ParseHooks(target string) error + func (r *Role) ParseLines(target string) error + func (r *Role) ParseLinks(target string) error + func (r *Role) ParseTpls(target string) error + func (r *Role) ParseVars() error + func (r *Role) SetConfigFile(name string) *Role + func (r *Role) ShouldRun() bool + func (r *Role) Status() error + func (r *Role) StatusBlocks() error + func (r *Role) StatusDirs() error + func (r *Role) StatusFiles() error + func (r *Role) StatusHooks() error + func (r *Role) StatusLines() error + func (r *Role) StatusLinks() error + func (r *Role) StatusPkgs() error + func (r *Role) StatusTpls() error + func (r *Role) String() (s string) + func (r *Role) Sync() (string, error) + type RoleConfig struct + Role *Role + type Task struct + Action string + If []string + OS []string + func (t *Task) Check() error + func (t *Task) CheckAction() error + func (t *Task) CheckIf() error + func (t *Task) CheckOS() error + func (t *Task) String() string + type Tasker interface + Check func() error + CheckAction func() error + CheckIf func() error + CheckOS func() error + Do func() error + Init func() error + Status func() error + String func() string + Undo func() error + type Tpl struct + Env *Env + Ext string + IncludeVars []string + Source string + Target string + Vars *Vars + func NewTpl(s string) *Tpl + func (t *Tpl) Do() error + func (t *Tpl) Init() error + func (t *Tpl) Prepare() error + func (t *Tpl) PrepareEnv() error + func (t *Tpl) PrepareVars() error + func (t *Tpl) Status() error + func (t *Tpl) String() string + func (t *Tpl) Undo() error + type Vars map[string]interface