features

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AutoEnvVariableName = "DEV_AUTO_ENV_FEATURES"

Variables

View Source
var DevUpNeeded error

Functions

This section is empty.

Types

type Env

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

func NewEnv

func NewEnv(env []string) (e *Env)

func (*Env) Changed

func (e *Env) Changed() []EnvVarChange

func (*Env) Get

func (e *Env) Get(name string) string

func (*Env) GetActiveFeatures

func (e *Env) GetActiveFeatures() map[string]string

func (*Env) PrependToPath added in v0.0.5

func (e *Env) PrependToPath(path string)

func (*Env) RemoveFromPath added in v0.0.5

func (e *Env) RemoveFromPath(substring string)

func (*Env) Set

func (e *Env) Set(name string, value string)

func (*Env) SetFeature added in v0.0.6

func (e *Env) SetFeature(name, param string)

func (*Env) Unset

func (e *Env) Unset(name string)

func (*Env) UnsetFeature added in v0.0.6

func (e *Env) UnsetFeature(name string)

type EnvVarChange

type EnvVarChange struct {
	Name    string
	Value   string
	Deleted bool
}

type Feature

type Feature interface {
	Enable(*config.Config, *project.Project, *Env) error
	Disable(*config.Config, *Env)
}

func NewPython

func NewPython(param string) Feature

type FeatureBuilder

type FeatureBuilder func(param string) Feature

type Python

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

func (*Python) Disable

func (p *Python) Disable(cfg *config.Config, env *Env)

func (*Python) Enable

func (p *Python) Enable(cfg *config.Config, proj *project.Project, env *Env) error

type Runner

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

func NewRunner

func NewRunner(cfg *config.Config, proj *project.Project, ui *termui.HookUI, env *Env) *Runner

func (*Runner) Run

func (r *Runner) Run(features map[string]string)

Jump to

Keyboard shortcuts

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