shell

package
v0.0.0-...-7457a68 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BinaryExists

func BinaryExists(pkg string) bool

func Exec

func Exec(args ...string) error

func ExecOutput

func ExecOutput(args ...string) (string, error)

func ExecSilent

func ExecSilent(args ...string) error

func Script

func Script(path string) error

func ScriptOutput

func ScriptOutput(path string) (string, error)

func ScriptSilent

func ScriptSilent(path string) error

Types

type Execution

type Execution struct {
	module.BaseDependable `yaml:",inline"`

	Name      module.ID `yaml:"name"   json:"name,omitempty"`
	Cmd       string    `yaml:"cmd"    json:"cmd,omitempty"`
	File      string    `yaml:"file"   json:"file,omitempty"`
	Silent    bool      `yaml:"silent" json:"silent,omitempty"`
	Mandatory bool      `yaml:"mandatory" json:"mandatory,omitempty"`
	// contains filtered or unexported fields
}

func (*Execution) Apply

func (x *Execution) Apply(ctx context.Context) (bool, string, error)

func (*Execution) GetID

func (x *Execution) GetID() module.ID

func (*Execution) IsMandatory

func (x *Execution) IsMandatory() bool

func (*Execution) IsOptional

func (x *Execution) IsOptional() bool

func (*Execution) Validate

func (x *Execution) Validate() error

type Shell

type Shell []*Execution

Jump to

Keyboard shortcuts

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