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

Function FormatForShellQuotedArgs

subprocess/subprocess.go:149–151  ·  view source on GitHub ↗

FormatForShellQuotedArgs takes a command name and an argument string and returns a command and arguments that pass this command to the shell. The arguments are escaped, but the name of the command is not.

(name string, args []string)

Source from the content-addressed store, hash-verified

147// returns a command and arguments that pass this command to the shell. The
148// arguments are escaped, but the name of the command is not.
149func FormatForShellQuotedArgs(name string, args []string) (string, []string) {
150 return FormatForShell(name, strings.Join(ShellQuote(args), " "))
151}
152
153func FormatPercentSequences(pattern string, replacements map[string]string) string {
154 s := new(strings.Builder)

Callers 2

FormatArgsFunction · 0.92
AssertMethod · 0.85

Calls 2

FormatForShellFunction · 0.85
ShellQuoteFunction · 0.85

Tested by 1

AssertMethod · 0.68