Documentation
¶
Index ¶
Constants ¶
View Source
const ( ScannerInitBuf = 64 * 1024 // 64 KB initial buffer ScannerMaxBuf = 1024 * 1024 // 1 MB max buffer )
Scanner buffer sizes for reading subprocess output.
Variables ¶
This section is empty.
Functions ¶
func CommandName ¶
CommandName returns the actual command name from args, skipping leading KEY=VALUE environment variable assignments.
Types ¶
type LineFilter ¶
LineFilter decides whether a line should be forwarded.
type LongRunner ¶
type LongRunner struct {
// contains filtered or unexported fields
}
LongRunner captures output from a long-running subprocess with debounce. Unlike Runner which flushes in batches of N lines, LongRunner collects output and flushes at regular intervals (debounce duration).
func NewLongRunner ¶
func NewLongRunner(s store.Store, sessionID, tag string, filter LineFilter, debounce time.Duration) *LongRunner
NewLongRunner creates a new LongRunner with the specified debounce duration.
type RunResult ¶
type RunResult struct {
ExitCode int
}
RunResult holds the result of a subprocess execution.
Click to show internal directories.
Click to hide internal directories.