exec

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInvalidCommand  = errors.New("invalid command")
	ErrorTemplateFailed  = errors.New("template error")
	ErrorExecutionFailed = errors.New("execution failed")
	ErrorHelperFailed    = errors.New("saving helper script failed")
)

Functions

func MustRegister

func MustRegister()

func Register added in v0.0.6

func Register() error

Types

type Backoff added in v0.4.0

type Backoff struct {
	MaxAttempts uint   `json:"max_attempts"`
	PolicySteps uint   `json:"steps"`
	PolicyMin   string `json:"min_sleep"`
	PolicyMax   string `json:"max_sleep"`
}

type Command

type Command struct {
	Command     string             `json:"command"`
	Environment []string           `json:"environment"`
	Transform   *builder.Transform `json:"transform"`
	Script      string             `json:"script"`
	Shell       string             `json:"shell"`
	Backoff     *Backoff           `json:"backoff"`
	WorkingDir  string             `json:"dir"`
	NoHelper    bool               `json:"no_helper"`

	builder.GenericSubCommands
	builder.GenericCommand
}

type Exec

type Exec struct {
	// contains filtered or unexported fields
}

func (*Exec) CreateCommand

func (r *Exec) CreateCommand(app builder.KingpinCommand) (*fisk.CmdClause, error)

func (*Exec) String

func (r *Exec) String() string

func (*Exec) SubCommands

func (r *Exec) SubCommands() []json.RawMessage

func (*Exec) Validate

func (r *Exec) Validate(log builder.Logger) error

Jump to

Keyboard shortcuts

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