handlers

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SetPathHandler

type SetPathHandler interface {
	Run(ctx context.Context, dryrun bool, p *SetPathParams) (err error)
}

func NewSetPath

func NewSetPath(exc exec.Interface) SetPathHandler

type SetPathHandlerFunc

type SetPathHandlerFunc func(ctx context.Context, dryrun bool, p *SetPathParams) error

func (SetPathHandlerFunc) Run added in v0.0.20

func (f SetPathHandlerFunc) Run(ctx context.Context, dryrun bool, p *SetPathParams) error

type SetPathParams

type SetPathParams struct {
	Values []string
}

type SetVariableHandler

type SetVariableHandler interface {
	Run(ctx context.Context, dryrun bool, p *SetVariableParams) (err error)
}

func NewSetVariable

func NewSetVariable(exc exec.Interface) SetVariableHandler

type SetVariableHandlerFunc

type SetVariableHandlerFunc func(ctx context.Context, dryrun bool, p *SetVariableParams) error

func (SetVariableHandlerFunc) Run added in v0.0.20

type SetVariableParams

type SetVariableParams struct {
	Name   string
	Value  string
	Scope  VariableScope
	Export bool
}

type VariableScope

type VariableScope int
const (
	UniversalScope VariableScope = iota + 1
	GlobalScope
	LocalScope
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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