localexec

package
v0.0.390 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAndPropagateCancelation

func RunAndPropagateCancelation(ctx context.Context, label string, cmd *exec.Cmd) error

func RunAndPropagateCancelationWithOpts

func RunAndPropagateCancelationWithOpts(ctx context.Context, label string, cmd *exec.Cmd, opts RunOpts) error

func RunInteractive

func RunInteractive(ctx context.Context, cmd *exec.Cmd) error

func WaitAndPropagateCancelation

func WaitAndPropagateCancelation(ctx context.Context, label string, cmd *exec.Cmd) error

Types

type Command

type Command struct {
	Label         string
	Command       string
	Dir           string
	Args          []string
	AdditionalEnv []string

	Persistent bool // Set to true if this is a persistent process.
}

func (Command) Run

func (c Command) Run(ctx context.Context) error

type RunOpts

type RunOpts struct {
	OnStart func()
}

Jump to

Keyboard shortcuts

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