Documentation
¶
Index ¶
- Constants
- func ExecShell() []string
- func RunCommand(command string, args []string) (output []byte, err error)deprecated
- func RunCommandContext(ctx context.Context, command string, args []string) ([]byte, error)
- func RunCommandWithWorkDir(workDir, command string, args []string) (output []byte, err error)deprecated
- func RunCommandWithWorkDirContext(ctx context.Context, workDir, command string, args []string) ([]byte, error)
Constants ¶
View Source
const ( // LinuxShellBin 执行脚本 LinuxShellBin string = "/bin/sh -c" // mac & linux WindowsShellBin string = "cmd.exe /C" // windows )
Variables ¶
This section is empty.
Functions ¶
func RunCommand
deprecated
func RunCommandContext ¶
RunCommandContext 运行命令(支持 Context)
func RunCommandWithWorkDir
deprecated
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.