konk

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func NewCommand

func NewCommand(conf CommandConfig) *Command

func NewShellCommand added in v0.1.0

func NewShellCommand(conf ShellCommandConfig) *Command

func RunConcurrently added in v0.11.0

func RunConcurrently(ctx context.Context, cfg RunConcurrentlyConfig) ([]*Command, error)

func (*Command) ReadOut

func (c *Command) ReadOut() string

func (*Command) Run

func (c *Command) Run(ctx context.Context, cancel context.CancelFunc, conf RunCommandConfig) error

type CommandConfig

type CommandConfig struct {
	Name    string
	Args    []string
	Label   string
	NoColor bool
	Env     []string
	OmitEnv bool
}

type ExitError added in v0.1.0

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

func (*ExitError) Error added in v0.1.0

func (e *ExitError) Error() string

type RunCommandConfig

type RunCommandConfig struct {
	AggregateOutput bool
	KillOnCancel    bool
}

type RunConcurrentlyConfig added in v0.11.0

type RunConcurrentlyConfig struct {
	Commands        []string
	Labels          []string
	Env             []string
	OmitEnv         bool
	AggregateOutput bool
	ContinueOnError bool
	NoColor         bool
	NoShell         bool
}

type ShellCommandConfig added in v0.1.0

type ShellCommandConfig struct {
	Command string
	Label   string
	NoColor bool
	Env     []string
	OmitEnv bool
}

Directories

Path Synopsis
internal
env

Jump to

Keyboard shortcuts

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