cmdrunner

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCommand

func RunCommand(dir string, command string, args ...string) error

RunCommand executes a command with a default timeout of 30 seconds.

func RunCommandOutput

func RunCommandOutput(dir string, command string, args ...string) (string, error)

RunCommandOutput executes a command and returns its output while enforcing a timeout.

func RunCommandWithTimeout

func RunCommandWithTimeout(dir string, timeout time.Duration, command string, args ...string) error

RunCommandWithTimeout executes a command with a specified timeout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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