osrun

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package osrun supplies bounded command output for the Unix daemon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kill

func Kill(cmd *exec.Cmd) error

func Run

func Run(ctx context.Context, dir string, env map[string]string, args ...string) (string, error)

Run separates stdout from diagnostic stderr. JSON callers fail if truncated.

func StartCommand

func StartCommand(ctx context.Context, dir string, args []string, env map[string]string) *exec.Cmd

Types

type Tail

type Tail struct {
	sync.Mutex
	Bytes     []byte
	Capacity  int
	Truncated bool
}

func (*Tail) Text

func (t *Tail) Text() (string, bool)

func (*Tail) Write

func (t *Tail) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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