cmd

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIllegal added in v1.3.6

func CheckIllegal(args ...string) bool

func Exec

func Exec(cmdStr string) (string, error)

func ExecCmd added in v1.8.0

func ExecCmd(cmdStr string) error

func ExecCmdWithDir added in v1.8.0

func ExecCmdWithDir(cmdStr, workDir string) error

func ExecContainerScript added in v1.7.0

func ExecContainerScript(containerName, cmdStr string, timeout time.Duration) error

func ExecCronjobWithTimeOut added in v1.2.0

func ExecCronjobWithTimeOut(cmdStr, workdir, outPath string, timeout time.Duration) error

func ExecScript added in v1.6.0

func ExecScript(scriptPath, workDir string) (string, error)

func ExecWithCheck added in v1.3.6

func ExecWithCheck(name string, a ...string) (string, error)

func ExecWithTimeOut added in v1.1.0

func ExecWithTimeOut(cmdStr string, timeout time.Duration) (string, error)

func Execf

func Execf(cmdStr string, a ...interface{}) (string, error)

func HasNoPasswordSudo added in v1.1.2

func HasNoPasswordSudo() bool

func SudoHandleCmd added in v1.3.0

func SudoHandleCmd() string

func Which added in v1.5.0

func Which(name string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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