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)
| 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. |
| 149 | func FormatForShellQuotedArgs(name string, args []string) (string, []string) { |
| 150 | return FormatForShell(name, strings.Join(ShellQuote(args), " ")) |
| 151 | } |
| 152 | |
| 153 | func FormatPercentSequences(pattern string, replacements map[string]string) string { |
| 154 | s := new(strings.Builder) |