command

package
v0.0.0-...-c943012 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	*exec.Cmd
	// contains filtered or unexported fields
}

func New

func New(name string, args []string, options Options) *Cmd

func (*Cmd) Exited

func (cmd *Cmd) Exited() bool

func (*Cmd) Start

func (cmd *Cmd) Start() error

func (*Cmd) Stop

func (cmd *Cmd) Stop(ctx context.Context) error

func (*Cmd) Wait

func (cmd *Cmd) Wait() error

type Command

type Command interface {
	Start() error
	Wait() error
	Stop(context.Context) error
}

type Options

type Options struct {
	Output io.Writer
	Stdout io.Writer
	Stderr io.Writer
}

Jump to

Keyboard shortcuts

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