cmder

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCMDTimeout = errors.New("command execution timed out")
)

Functions

func RunCmd

func RunCmd(cmdArgs []string, timeout ...time.Duration) cmd.Status

RunCmd 运行命令, 返回结果和状态

func RunCmdWithContext

func RunCmdWithContext(ctx context.Context, cmdArgs []string) cmd.Status

RunCmdWithContext 运行命令, 返回结果和状态

Types

This section is empty.

Jump to

Keyboard shortcuts

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