cmdx

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const MaxStderrBytes = 512

Variables

This section is empty.

Functions

func CmdStart

func CmdStart(cmd *exec.Cmd) error

func CmdWait

func CmdWait(cmd *exec.Cmd, timeout time.Duration) (error, bool)

func CommandRun

func CommandRun(command string, timeout time.Duration) ([]byte, []byte, error)

func RemoveWindowsCarriageReturns

func RemoveWindowsCarriageReturns(b bytes.Buffer) bytes.Buffer

RemoveWindowsCarriageReturns removes all carriage returns from the input if the OS is Windows. It does not return any errors.

func RunTimeout

func RunTimeout(cmd *exec.Cmd, timeout time.Duration) (error, bool)

func TruncateStderr

func TruncateStderr(buf bytes.Buffer) bytes.Buffer

Types

This section is empty.

Jump to

Keyboard shortcuts

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