exec

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT, Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CMD

func CMD(s string, opts ...Option) *exec.Cmd

CMD returns the result.

func CmdString added in v1.11.2

func CmdString(cmd *exec.Cmd) string

CmdString returns the result.

func Run

func Run(s string, opts ...Option) error

Run executes the operation.

func RunGetOut

func RunGetOut(s string, opts ...Option) (string, error)

RunGetOut executes the operation.

func RunGetOutWithLog

func RunGetOutWithLog(s string, opts ...Option) (string, error)

RunGetOutWithLog executes the operation.

func RunWithLog

func RunWithLog(s string, opts ...Option) error

RunWithLog executes the operation.

func Shell added in v1.3.18

func Shell(interpreter, shell string, opts ...Option) error

Shell run shell e.g. Shell("bash", "echo hello world")

Types

type Option

type Option func(cmd *exec.Cmd)

Jump to

Keyboard shortcuts

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