cmdutil

package
v0.0.0-...-2a34ce9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallContext

func CallContext(prog string, stdin []byte, timeout int, args ...string) ([]byte, error)

func CheckExitErr

func CheckExitErr(err error) bool

func ExecBashCmd

func ExecBashCmd(cmd string) ([]byte, error)

func ExecBashCmdWithContext

func ExecBashCmdWithContext(ctx context.Context, cmd string) ([]byte, error)

func ExecCmd

func ExecCmd(cmd string, args ...string) ([]byte, error)

func ExecCmdString

func ExecCmdString(cmd string, args []string) (string, error)

func ExecCmdWithContext

func ExecCmdWithContext(ctx context.Context, cmd string, args ...string) ([]byte, error)

func ExecCmdWithReadWrite

func ExecCmdWithReadWrite(cmd string, args []string, in *bytes.Buffer, out *bytes.Buffer) error

func ExecCmdWithReadWriteAndTimeout

func ExecCmdWithReadWriteAndTimeout(cmd string, args []string, timeout time.Duration, in *bytes.Buffer, out *bytes.Buffer) error

func ExecShCmd

func ExecShCmd(cmd string) ([]byte, error)

func ExecShCmdWithContext

func ExecShCmdWithContext(ctx context.Context, cmd string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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