cmdoutput

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package cmdoutput captures command output with bounded memory and consistent formatting for foreground and background commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capture

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

func NewCapture

func NewCapture(opts Options) *Capture

func (*Capture) Close

func (c *Capture) Close()

func (*Capture) Format

func (c *Capture) Format() string

func (*Capture) Len

func (c *Capture) Len() int64

func (*Capture) Stderr

func (c *Capture) Stderr() io.Writer

func (*Capture) Stdout

func (c *Capture) Stdout() io.Writer

type Options

type Options struct {
	HomeDir      string
	SpillPrefix  string
	MaxBytes     int
	MaxLineChars int
}

Jump to

Keyboard shortcuts

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