exec

package
v1.14.1-0...-7f8ff72 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BashEval

func BashEval(cmd string) string

func CheckCmdIsExist

func CheckCmdIsExist(cmd string) (string, bool)

func CmdWithContext

func CmdWithContext(ctx context.Context, name string, args ...string) error

func Eval

func Eval(cmd string) string

func ExecutableFileArch

func ExecutableFileArch(path string) string

func ExecutableFilePath

func ExecutableFilePath(name string) string

func FetchSealosAbsPath

func FetchSealosAbsPath() string

FetchSealosAbsPath 获取sealos绝对路径

func Output

func Output(name string, args ...string) ([]byte, error)

func RunBashCmd

func RunBashCmd(cmd string) (string, error)

func RunSimpleCmd

func RunSimpleCmd(cmd string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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