engine

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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"`
}

Jump to

Keyboard shortcuts

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