features

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2018 License: MIT Imports: 6 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) Set

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

func (*Env) SetActiveFeatures

func (e *Env) SetActiveFeatures(features map[string]string)

func (*Env) Unset

func (e *Env) Unset(name string)

type EnvVarChange

type EnvVarChange struct {
	Name    string
	Value   string
	Deleted bool
}

type Feature

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

func NewPython

func NewPython(param string) Feature

type FeatureBuilder

type FeatureBuilder func(param string) Feature

type Python

type Python struct {
	Version string
}

func (Python) Disable

func (p Python) Disable(proj *project.Project, env *Env, ui *termui.UI)

func (Python) Enable

func (p Python) Enable(proj *project.Project, env *Env, ui *termui.UI) error

type Runner

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

func NewRunner

func NewRunner(proj *project.Project, ui *termui.UI, env *Env) *Runner

func (*Runner) Run

func (r *Runner) Run()

Jump to

Keyboard shortcuts

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