runner

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HelpCmd    = "help"
	VersionCmd = "version"
	AuthorCmd  = "author"

	IgnoreFailureToken = "^"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandAgent

type CommandAgent interface {
	Execute(cmd string) error
}

type OSAgent

type OSAgent struct{}

func (*OSAgent) Execute

func (e *OSAgent) Execute(cmd string) error

type Runner

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

func NewRunner

func NewRunner(e CommandAgent, v bool) *Runner

func (*Runner) GetPrintableAuthor

func (r *Runner) GetPrintableAuthor(b *models.Bakery) string

func (*Runner) GetPrintableHelp

func (r *Runner) GetPrintableHelp(b *models.Bakery) string

func (*Runner) GetPrintableVersion

func (r *Runner) GetPrintableVersion(b *models.Bakery) string

func (*Runner) Run added in v1.3.0

func (r *Runner) Run(b *models.Bakery, args []string) error

Jump to

Keyboard shortcuts

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