Versions in this module Expand all Collapse all v0 v0.2.0 Jun 14, 2019 Changes in this version + const EvtFinished + const EvtFinishedErr + const EvtStarted + const EvtStepPrefix + const Version + var DefaultLogLvl = logger.InfoLevel + func Confirm(msg string) bool + func ForceBox(g *Generator, box packd.Walker, force bool) error + func GoBin() string + func HasExt(f File, ext ...string) bool + type DeleteFn func() + type Dir struct + Perm os.FileMode + type Disk struct + Runner *Runner + func (d *Disk) Add(f File) + func (d *Disk) AddBox(box packd.Walker) error + func (d *Disk) Delete(name string) error + func (d *Disk) Files() []File + func (d *Disk) Find(name string) (File, error) + func (d *Disk) Remove(name string) + type File = packd.SimpleFile + func NewDir(path string, perm os.FileMode) File + func NewFile(name string, r io.Reader) File + func NewFileB(name string, s []byte) File + func NewFileS(name string, s string) File + func StripExt(f File, ext string) File + type Generator struct + ErrorFn func(error) + Root string + Should func(*Runner) bool + StepName string + func New() *Generator + func (g *Generator) Box(box packd.Walker) error + func (g *Generator) Command(cmd *exec.Cmd) + func (g *Generator) Event(kind string, payload mapi.Mapi) + func (g *Generator) File(f File) + func (g *Generator) RunFn(fn RunFn) + func (g *Generator) Transform(f File) (File, error) + func (g *Generator) Transformer(t Transformer) + func (g1 *Generator) Merge(g2 *Generator) + type Group struct + Generators []*Generator + func (gg *Group) Add(g *Generator) + func (gg *Group) Merge(g2 *Group) + func (gg *Group) With(r *Runner) + type Logger = logger.Logger + type RequestResult struct + Client *http.Client + Error error + Request *http.Request + Response *http.Response + type Results struct + Commands []*exec.Cmd + Files []File + Requests []RequestResult + func (r Results) Find(s string) (File, error) + type RunFn func(r *Runner) error + func Force(path string, force bool) RunFn + type Runner struct + ChdirFn func(string, func() error) error + Context context.Context + DeleteFn func(string) error + Disk *Disk + ExecFn func(*exec.Cmd) error + FileFn func(File) (File, error) + Logger Logger + LookPathFn func(string) (string, error) + RequestFn func(*http.Request, *http.Client) (*http.Response, error) + Root string + func DryRunner(ctx context.Context) *Runner + func NewRunner(ctx context.Context) *Runner + func WetRunner(ctx context.Context) *Runner + func (r *Runner) Chdir(path string, fn func() error) error + func (r *Runner) Delete(path string) error + func (r *Runner) Exec(cmd *exec.Cmd) error + func (r *Runner) File(f File) error + func (r *Runner) FindFile(name string) (File, error) + func (r *Runner) FindStep(name string) (*Step, error) + func (r *Runner) LookPath(s string) (string, error) + func (r *Runner) ReplaceStep(name string, s *Step) error + func (r *Runner) Request(req *http.Request) (*http.Response, error) + func (r *Runner) RequestWithClient(req *http.Request, c *http.Client) (*http.Response, error) + func (r *Runner) Results() Results + func (r *Runner) Run() error + func (r *Runner) Steps() []*Step + func (r *Runner) With(g *Generator) error + func (r *Runner) WithFn(fn func() (*Generator, error)) error + func (r *Runner) WithGroup(gg *Group) + func (r *Runner) WithNew(g *Generator, err error) error + func (r *Runner) WithRun(fn RunFn) + func (r *Runner) WithStep(name string, step *Step) error + type Step struct + func NewStep(g *Generator, index int) (*Step, error) + func (s *Step) After(g *Generator) DeleteFn + func (s *Step) Before(g *Generator) DeleteFn + func (s *Step) Run(r *Runner) error + type Transformer struct + Ext string + StripExt bool + func Dot() Transformer + func NewTransformer(ext string, fn TransformerFn) Transformer + func Replace(search string, replace string) Transformer + func (t Transformer) Transform(f File) (File, error) + type TransformerFn func(File) (File, error) + func ForceFile(f File, force bool) TransformerFn