procutil

package
v0.9.21 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureCommandProcessGroup

func ConfigureCommandProcessGroup(cmd *exec.Cmd)

ConfigureCommandProcessGroup starts cmd in its own process group without removing access to the caller's controlling terminal.

func ConfigureDetachedCommand added in v0.0.379

func ConfigureDetachedCommand(cmd *exec.Cmd)

ConfigureDetachedCommand starts cmd in a new session and configures process-group cancellation.

func PrepareCommand

func PrepareCommand(cmd *exec.Cmd) (func(), error)

PrepareCommand configures a captured subprocess in a detached session so it cannot bypass its configured streams through the caller's controlling TTY.

func PrepareCommandProcessGroup added in v0.0.379

func PrepareCommandProcessGroup(cmd *exec.Cmd) (func(), error)

PrepareCommandProcessGroup preserves controlling-terminal access while still providing process-group cancellation. Use this only for explicitly interactive helpers such as credential resolvers.

Types

type LimitedBuffer

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

func NewLimitedBuffer

func NewLimitedBuffer(limit int64) *LimitedBuffer

func (*LimitedBuffer) String

func (b *LimitedBuffer) String() string

func (*LimitedBuffer) Truncated

func (b *LimitedBuffer) Truncated() bool

func (*LimitedBuffer) Write

func (b *LimitedBuffer) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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