mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-15 08:41:16 -05:00
Bumps [github.com/gookit/config/v2](https://github.com/gookit/config) from 2.2.6 to 2.2.7. - [Release notes](https://github.com/gookit/config/releases) - [Commits](https://github.com/gookit/config/compare/v2.2.6...v2.2.7) --- updated-dependencies: - dependency-name: github.com/gookit/config/v2 dependency-version: 2.2.7 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
16 lines
532 B
Go
16 lines
532 B
Go
// Package cmdline provide quick build and parse cmd line string.
|
|
package cmdline
|
|
|
|
import "github.com/gookit/goutil/internal/comfunc"
|
|
|
|
// LineBuild build command line string by given args.
|
|
func LineBuild(binFile string, args []string) string {
|
|
return NewBuilder(binFile, args...).String()
|
|
}
|
|
|
|
// ParseLine input command line text. alias of the StringToOSArgs()
|
|
func ParseLine(line string) []string { return NewParser(line).Parse() }
|
|
|
|
// Quote string in shell command env
|
|
func Quote(s string) string { return comfunc.ShellQuote(s) }
|