common

package
v1.12.3-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CMDExecWithOutput

func CMDExecWithOutput(checkCMD *exec.Cmd) (*[]byte, error)

func GetListByCmdPipes

func GetListByCmdPipes(ctx context.Context, cmdlines []*OsCommandLine) ([]string, error)

func WriteToFile

func WriteToFile(content, fileName string) error

Types

type OsCommandLine

type OsCommandLine struct {
	Cmd  string
	Args []string
}

Jump to

Keyboard shortcuts

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