steps

package
v0.2.22 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 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

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

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

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