cmdKit

package
v1.3.10 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

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

Execute 执行命令(会阻塞直到命令结束)

func ExecuteToString

func ExecuteToString(name string, args ...string) (string, error)

ExecuteToString 执行命令(会阻塞直到命令结束)

func NewCommand

func NewCommand(setpgid bool, deathSig syscall.Signal, name string, args ...string) *exec.Cmd

NewCommand

@param deathSig Mac环境不支持

Types

This section is empty.

Jump to

Keyboard shortcuts

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