engine

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Mappings map[string][]*Mapping `json:"mappings"`
	// contains filtered or unexported fields
}

func New

func New() *Engine

func (*Engine) Commands

func (eng *Engine) Commands() []string

func (*Engine) LoadPimpfile added in v0.0.4

func (eng *Engine) LoadPimpfile(file *os.File, setCWD bool) error

func (*Engine) Map

func (eng *Engine) Map(env []string, args []string) ([]string, []string, map[string]string, string)

type Mapping

type Mapping struct {
	Pattern []string `json:"pattern"`
	//
	CWD   string            `json:"cwd,omitempty"`
	Env   []string          `json:"env,omitempty"`
	Args  []string          `json:"args"`
	Files map[string]string `json:"files,omitempty"`
}

type Pimpfile added in v0.0.4

type Pimpfile yaml.MapSlice

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL