runner

package
v0.0.0-...-0f43fba Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const EmptyOutput = ""

Variables

This section is empty.

Functions

func GetError

func GetError(output *orderedmap.OrderedMap[string, CommandOutput]) string

func LogCmds

func LogCmds(cmds *orderedmap.OrderedMap[string, Command])

func LogOutputs

func LogOutputs(outputs *orderedmap.OrderedMap[string, CommandOutput])

func Multi

func Multi(cmds *orderedmap.OrderedMap[string, Command]) (*orderedmap.OrderedMap[string, CommandOutput], error)

Multi should be avoided as much as possible. Try to use go apis for the same.

func Single

func Single(key string, skipLog bool, sensitive bool, name string, args ...string) (string, error)

Types

type Command

type Command struct {
	Name      string
	Args      []string
	Sensitive bool
}

func Get

func Get(name string, args ...string) Command

func GetSensitive

func GetSensitive(name string, args ...string) Command

type CommandOutput

type CommandOutput struct {
	Name      string
	Sensitive bool
	Output    string
	Error     error
}

Jump to

Keyboard shortcuts

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