cmd

package
v0.0.0-...-5e392d4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Scripts = getBaseScripts(false)

Functions

func CheckAgentCompatibility

func CheckAgentCompatibility(vbmode bool) bool

func ExcuteAsScriptOut

func ExcuteAsScriptOut(cmd string, filename string, param ...string)

func ExecBg

func ExecBg(cmd string, vbmode bool, param ...string) (*exec.Cmd, error)

func Execute

func Execute(cmd string, err_message string, param string) string

func ExecuteAsCommand

func ExecuteAsCommand(cm string, message string, vbmode bool, param ...string) error

ExecuteAsCommand

func ExecuteAsScript

func ExecuteAsScript(cmd string, message string, vbmode bool, param ...string) (string, error)

func ExecuteWithOut

func ExecuteWithOut(cmd string, vbmode bool, param []string, filename string) error

func FileToString

func FileToString(fname string) string

func GetConfigFile

func GetConfigFile() string

func GetOS

func GetOS(vbmode bool) (string, string, string, error)

func GetScript

func GetScript(name string) string

func GetScriptf

func GetScriptf(name string, v ...interface{}) string

func RemoveUnprintable

func RemoveUnprintable(s string) string

func StringToFile

func StringToFile(script string) string

func WriteFile

func WriteFile(file string, data []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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