exec

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2025 License: MIT, Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CMD

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

func Run

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

func RunGetOut

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

func RunGetOutWithLog

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

func RunWithLog

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

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")

func WaitShutdown

func WaitShutdown()

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