MCPcopy
hub / github.com/git-lfs/git-lfs / FormatForShell

Function FormatForShell

subprocess/subprocess.go:142–144  ·  view source on GitHub ↗

FormatForShell takes a command name and an argument string and returns a command and arguments that pass this command to the shell. Note that neither the command nor the arguments are quoted. Consider FormatForShellQuoted instead.

(name string, args string)

Source from the content-addressed store, hash-verified

140// the command nor the arguments are quoted. Consider FormatForShellQuoted
141// instead.
142func FormatForShell(name string, args string) (string, []string) {
143 return "sh", []string{"-c", name + " " + args}
144}
145
146// FormatForShellQuotedArgs takes a command name and an argument string and
147// returns a command and arguments that pass this command to the shell. The

Callers 3

WorkerStartingMethod · 0.92
FormatForShellQuotedArgsFunction · 0.85
AssertMethod · 0.85

Calls

no outgoing calls

Tested by 1

AssertMethod · 0.68