Documentation ¶ Index ¶ type Config type Engine func New() *Engine func (eng *Engine) Append(r io.Reader) error func (eng *Engine) Commands() []string func (eng *Engine) JSON(w io.Writer) error func (eng *Engine) Map(env []string, args []string) ([]string, []string, map[string]string) type Mapping Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config yaml.MapSlice type Engine ¶ type Engine struct { Mappings map[string][]*Mapping `json:"mappings"` // contains filtered or unexported fields } func New ¶ func New() *Engine func (*Engine) Append ¶ func (eng *Engine) Append(r io.Reader) error func (*Engine) Commands ¶ func (eng *Engine) Commands() []string func (*Engine) JSON ¶ func (eng *Engine) JSON(w io.Writer) error func (*Engine) Map ¶ func (eng *Engine) Map(env []string, args []string) ([]string, []string, map[string]string) type Mapping ¶ type Mapping struct { Pattern []string `json:"pattern"` Env []string `json:"env,omitempty"` Args []string `json:"args"` Files map[string]string `json:"files,omitempty"` } Source Files ¶ View all Source files engine.go Click to show internal directories. Click to hide internal directories.