cmdpkg

package
v0.2.22 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

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 ExecShell

func ExecShell() []string

ExecShell 执行二进制

func RunCommand

func RunCommand(command string, args []string) (output []byte, err error)

RunCommand 运行命令

func RunCommandWithWorkDir

func RunCommandWithWorkDir(workDir, command string, args []string) (output []byte, err error)

RunCommandWithWorkDir 运行命令 @param workDir specifies the working directory of the command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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