commandutils

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 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.8

func RunCommand(args string) (string, error)

RunCommand

Use the cmd command interpreter to execute single-line commands, such as dir

func RunSh added in v0.3.8

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

RunSh

Execute script files, such as test.bat,test.cmd

Types

This section is empty.

Jump to

Keyboard shortcuts

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