cmd

package
v0.40.4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(cmdName string, params ...string) error

Exec exex the command stdout

func GetName

func GetName(args ...string) (string, string)

GetName get the params name

func Run

func Run(str string, args ...string) (string, string, error)

Run run the cmd shell return error

func RunSh added in v0.31.0

func RunSh(path string) ([]byte, error)

Run the command shell return output

Types

This section is empty.

Jump to

Keyboard shortcuts

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