command

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoCandidatesProvided = fmt.Errorf("candidates are a required field")
	ErrNoCommandProvided    = fmt.Errorf("command is a required field")
)

Functions

func CandidatesFromConfig added in v0.5.0

func CandidatesFromConfig(cfg config.CIDConfig) ([]executable.Executable, error)

func Execute added in v0.5.0

func Execute(opts Opts) (stdout string, stderr string, cand executable.Executable, err error)

Execute gets called from actions or the api to execute commands

Types

type Opts added in v0.5.0

type Opts struct {
	Candidates             []executable.Executable
	CandidateTypes         []executable.CandidateType
	Command                string
	Env                    map[string]string
	ProjectDir             string
	WorkDir                string
	TempDir                string
	CaptureOutput          bool
	HideStandardOutput     bool
	HideStandardError      bool
	Ports                  []int
	UserProvidedConstraint string
	Constraints            map[string]string
	Stdin                  io.Reader
}

Jump to

Keyboard shortcuts

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