commandutils

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

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

Run

The first parameter is the command interpreter or a standalone executable program.
Some programs require the help of a command interpreter, such as ls,
while others can be executed independently using the program name, such as ipconfig

func RunCommand added in v0.3.6

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

RunCommand

Use the sh command interpreter to execute a single-line command, such as ls

func RunSh added in v0.3.6

func RunSh(args ...string) (string, error)

RunSh

Execute a Shell script file, such as test.sh

Types

This section is empty.

Jump to

Keyboard shortcuts

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