texec

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExecResult

type CommandExecResult struct {
	Success       bool   // Success 命令是否执行成功
	CommandString string // CommandString 命令字符串
	Output        string // Output 命令执行输出
	Error         error  // Error 命令执行错误
}

CommandExecResult 命令执行结果

func CommandExecute

func CommandExecute(command string) CommandExecResult

CommandExecute 执行系统命令并打印结果 Args: command string 命令字符串 Returns: CommandExecResult 命令执行结果

Jump to

Keyboard shortcuts

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