exec

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(command string, params ...string) string

Execute execs the command with params returns output or error msg

func ExecuteWithError

func ExecuteWithError(command string, params ...string) (string, error)

ExecuteWithError execs the command with params returns output and error

func ExecuteWithPipe

func ExecuteWithPipe(command string) string

ExecuteWithPipe execs commands with pipe returns output or error msg

func ExecuteWithPipeAndError

func ExecuteWithPipeAndError(command string, params ...string) (string, error)

ExecuteWithPipeAndError execs commands with pipe returns output and error

func GetExecPath

func GetExecPath(cmd string) string

GetExecPath returns the execpath of binary

Types

This section is empty.

Jump to

Keyboard shortcuts

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