Help us shape the future of Go! Take the 2026 Go Developer Survey

env

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: Apache-2.0 Imports: 9 Imported by: 3

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