MCPcopy
hub / github.com/filebrowser/filebrowser / parseUnixCommand

Function parseUnixCommand

runner/commands.go:62–64  ·  view source on GitHub ↗

parseUnixCommand parses a unix style command line and returns the command and its arguments or an error

(cmd string)

Source from the content-addressed store, hash-verified

60// parseUnixCommand parses a unix style command line and returns the
61// command and its arguments or an error
62func parseUnixCommand(cmd string) ([]string, error) {
63 return shlex.Split(cmd)
64}
65
66// parseWindowsCommand parses windows command lines and
67// returns the command and the arguments as an array. It

Callers 2

SplitCommandAndArgsFunction · 0.85
TestParseUnixCommandFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestParseUnixCommandFunction · 0.68