runner

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindShell added in v1.1.0

func FindShell() string

FindShell returns the path to an available shell, or empty string if none found.

Types

type ActivityWriter

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

func NewActivityWriter

func NewActivityWriter(w io.Writer) *ActivityWriter

func (*ActivityWriter) IdleDuration

func (a *ActivityWriter) IdleDuration() time.Duration

func (*ActivityWriter) LastActive

func (a *ActivityWriter) LastActive() time.Time

func (*ActivityWriter) Write

func (a *ActivityWriter) Write(p []byte) (n int, err error)

type Runner

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

func New

func New(cfg *config.Config) *Runner

func (*Runner) IdleDuration

func (r *Runner) IdleDuration() time.Duration

func (*Runner) IsRunning

func (r *Runner) IsRunning() bool

func (*Runner) Kill

func (r *Runner) Kill() error

func (*Runner) Pid

func (r *Runner) Pid() int

func (*Runner) Signal

func (r *Runner) Signal(sig os.Signal) error

func (*Runner) Start

func (r *Runner) Start(ctx context.Context) error

func (*Runner) Wait

func (r *Runner) Wait() (int, error)

Jump to

Keyboard shortcuts

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