steps

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Confirm added in v0.2.8

type Confirm struct {
	Message string
	Then    exec.Executables
}

Confirm represents a conditional step that executes its child executable only if user answers Yes when prompted for given message

func (Confirm) Execute added in v0.2.8

func (c Confirm) Execute(context exec.Context) error

Execute executes a child action only if user answers Yes when prompted for given message

func (Confirm) String added in v0.2.8

func (c Confirm) String() string

type If

type If struct {
	Condition string
	Then      exec.Executables
}

If represents a conditional step that executes its child executable only if a given condition evaluates to true

func (If) Execute

func (i If) Execute(context exec.Context) error

Execute executes a child action only when a given condition evaluates to true

func (If) String

func (i If) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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