command

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(command string, args ...string) *exec.Cmd

func RunCommand

func RunCommand(command string, args ...string) error

RunCommand 运行命令 在控制台实时显示输出标准输出和标准错误 遇到无法继续的错误则返回

func RunCommandOutput

func RunCommandOutput(command string, args ...string) (string, error)

RunCommandOutput 运行命令 返回输出结构 运行出错则返回错误

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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