shells

package
v0.1.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommandFromArgs

func BuildCommandFromArgs(name string, args ...string) string

BuildCommandFromArgs 如果 args 为空则使用 name 作为整个 command,否则将 args 作为参数并 quote

func Join

func Join(cmdAndArgs []string) string

func MustSplit

func MustSplit(cmd string) []string

func Quote

func Quote(arg string) string

func Split

func Split(cmd string) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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