env

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2020 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTaskConfig

func GetTaskConfig(name, action string, conf *config.EnvConfig) (types.TaskConfig, error)

GetTaskConfig returns a new task for the action

Types

type Task

type Task struct {
	types.NoStop
	// contains filtered or unexported fields
}

Task sets environment variables

func (*Task) Name

func (t *Task) Name() task.Name

Name returns the name of the task

func (*Task) Repr

func (t *Task) Repr() string

Repr formats the task for logging

func (*Task) Run

func (t *Task) Run(_ *context.ExecuteContext, _ bool) (bool, error)

Run sets environment variables

Jump to

Keyboard shortcuts

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