proc

package
v3.8.1-0...-bb4de4f Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QuickCmd

func QuickCmd(command string, args []string) error

QuickCmd executes a cmd with args with default options

Types

type CmdOptions

type CmdOptions struct {
	Command    string
	Args       []string
	WorkingDir string
	HideWindow bool
}

CmdOptions options of command

type CmdResult

type CmdResult struct {
	Options  CmdOptions
	ExitCode uint32
	Stdout   string
	Stderr   string
}

CmdResult result of command

func Cmd

func Cmd(options CmdOptions) (CmdResult, error)

Cmd to execute a system command

Jump to

Keyboard shortcuts

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