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

Function FormatArgs

ssh/ssh.go:33–39  ·  view source on GitHub ↗
(cmd string, args []string, needShell bool)

Source from the content-addressed store, hash-verified

31}
32
33func FormatArgs(cmd string, args []string, needShell bool) (string, []string) {
34 if !needShell {
35 return cmd, args
36 }
37
38 return subprocess.FormatForShellQuotedArgs(cmd, args)
39}
40
41func GetLFSExeAndArgs(osEnv config.Environment, gitEnv config.Environment, meta *SSHMetadata, command, operation string, multiplexDesired bool, multiplexControlPath string) (exe string, args []string, multiplexing bool, controlPath string) {
42 exe, args, needShell, multiplexing, controlPath := GetExeAndArgs(osEnv, gitEnv, meta, multiplexDesired, multiplexControlPath)

Calls 1

FormatForShellQuotedArgsFunction · 0.92