goshell

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteMultiLinesCommand

func ExecuteMultiLinesCommand(lines []string) (string, error)

ExecuteMultiLinesCommand 执行多行命令

func ExecuteMultiLinesCommandWithWork

func ExecuteMultiLinesCommandWithWork(lines []string, work string) (string, error)

ExecuteMultiLinesCommandWithWork 在指定工作目录下执行多行命令

func ExecuteSingleLineCommand

func ExecuteSingleLineCommand(line string) (string, error)

ExecuteSingleLineCommand 执行单行命令

func ExecuteSingleLineCommandWithWork

func ExecuteSingleLineCommandWithWork(line string, work string) (string, error)

ExecuteSingleLineCommandWithWork 在指定工作目录下执行单行命令

Types

type Command

type Command struct {
	Dir string
	Cmd string
}

Command 命令

Jump to

Keyboard shortcuts

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