tasks

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFeaturesFromTasks added in v0.0.7

func GetFeaturesFromTasks(proj *project.Project, tasks []Task) map[string]string

func RunAll added in v0.0.5

func RunAll(cfg *config.Config, proj *project.Project, ui *termui.UI) error

Types

type Context added in v0.0.5

type Context struct {
	// contains filtered or unexported fields
}

type Custom

type Custom struct {
	// contains filtered or unexported fields
}

func (*Custom) Load

func (c *Custom) Load(definition interface{}) (bool, error)

func (*Custom) Perform

func (c *Custom) Perform(ctx *Context) error

type Invalid added in v0.0.8

type Invalid struct {
	// contains filtered or unexported fields
}

func (*Invalid) Load added in v0.0.8

func (u *Invalid) Load(definition interface{}) (bool, error)

func (*Invalid) Perform added in v0.0.8

func (u *Invalid) Perform(ctx *Context) (err error)

type Pip

type Pip struct {
	// contains filtered or unexported fields
}

func (*Pip) Load

func (p *Pip) Load(definition interface{}) (bool, error)

func (*Pip) Perform

func (p *Pip) Perform(ctx *Context) (err error)

type Pipfile added in v0.0.7

type Pipfile struct {
}

func (*Pipfile) InstallPipenv added in v0.0.7

func (p *Pipfile) InstallPipenv(ctx *Context, venv *helpers.Virtualenv) (acted bool, err error)

func (*Pipfile) Load added in v0.0.7

func (p *Pipfile) Load(definition interface{}) (bool, error)

func (*Pipfile) Perform added in v0.0.7

func (p *Pipfile) Perform(ctx *Context) (err error)

func (*Pipfile) RunInstall added in v0.0.7

func (p *Pipfile) RunInstall(ctx *Context, venv *helpers.Virtualenv) (acted bool, err error)

type Python added in v0.0.3

type Python struct {
	// contains filtered or unexported fields
}

func (*Python) CreateVirtualEnv added in v0.0.5

func (p *Python) CreateVirtualEnv(ctx *Context) (acted bool, err error)

func (*Python) Feature added in v0.0.5

func (p *Python) Feature(proj *project.Project) (string, string)

func (*Python) InstallPython added in v0.0.5

func (p *Python) InstallPython(ctx *Context) (acted bool, err error)

func (*Python) InstallVirtualEnv added in v0.0.5

func (p *Python) InstallVirtualEnv(ctx *Context) (acted bool, err error)

func (*Python) Load added in v0.0.3

func (p *Python) Load(definition interface{}) (bool, error)

func (*Python) Perform added in v0.0.3

func (p *Python) Perform(ctx *Context) (err error)

type Task

type Task interface {
	Load(interface{}) (bool, error)
	Perform(*Context) error
}

func GetTasksFromProject added in v0.0.5

func GetTasksFromProject(proj *project.Project) (taskList []Task, err error)

func NewCustom added in v0.0.5

func NewCustom() Task

func NewInvalid added in v0.0.8

func NewInvalid() Task

func NewPip added in v0.0.5

func NewPip() Task

func NewPipfile added in v0.0.7

func NewPipfile() Task

func NewPython added in v0.0.5

func NewPython() Task

func NewUnknown added in v0.0.5

func NewUnknown() Task

type TaskBuilder added in v0.0.5

type TaskBuilder func() Task

type TaskWithFeature added in v0.0.4

type TaskWithFeature interface {
	Task
	Feature(*project.Project) (string, string)
}

Jump to

Keyboard shortcuts

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