capture

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InteractiveRun

func InteractiveRun(scopeDir string, cmdSlice []string, rerun bool)

Types

type WrappedCommand

type WrappedCommand struct {
	Path    string
	Command string
	Args    []string
	Runs    []*WrappedOutput
	// contains filtered or unexported fields
}

func GetWrappedCommands

func GetWrappedCommands(scopeDir string) []*WrappedCommand

func NewWrappedCommand

func NewWrappedCommand(scopeDir, cmdName string, cmdArgs []string) *WrappedCommand

func NewWrappedCommandFromDir

func NewWrappedCommandFromDir(cmdDir string) *WrappedCommand

func (*WrappedCommand) GetInputNotUsedYet added in v0.3.2

func (wc *WrappedCommand) GetInputNotUsedYet() []string

func (*WrappedCommand) GetRuns

func (wc *WrappedCommand) GetRuns() []*WrappedOutput

func (*WrappedCommand) MaybeAskToRerun

func (wc *WrappedCommand) MaybeAskToRerun() (bool, error)

func (*WrappedCommand) Run

func (wc *WrappedCommand) Run(rerun bool) error

type WrappedOutput

type WrappedOutput struct {
	Created         time.Time
	Path            string
	StdErrFile      string
	StdOutFile      string
	AdditionalFiles []string
	// contains filtered or unexported fields
}

func WrappedOutputFromCmdFile added in v0.3.2

func WrappedOutputFromCmdFile(cmdFile string) *WrappedOutput

func (*WrappedOutput) GetInput added in v0.3.2

func (wo *WrappedOutput) GetInput() (map[string]bool, error)

func (*WrappedOutput) UsedInput added in v0.3.2

func (wo *WrappedOutput) UsedInput(input string) bool

Jump to

Keyboard shortcuts

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