features

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync added in v0.8.0

func Sync(cfg *config.Config, proj *project.Project, ui *termui.UI, env *env.Env, features map[string]string)

Sync activates / deactivates the features in the instance of env.Env. When a feature is already active but unknown, it will be ignored completely. When a param changes, the feature is deactivated with the current param then activated with the new param.

Types

type Feature

type Feature struct {
	Name       string
	Activate   activateFunc
	Deactivate deactivateFunc
}

Feature is the implementation of an environment feature.

func Get added in v0.8.0

func Get(name string) (*Feature, error)

Get returns a feature selected by the name argument.

Jump to

Keyboard shortcuts

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