cmdString is a simple helper function that returns a string with [cmdName] and the given command name string combined to form a string representing the complete command being run.
(cmd string)
| 93 | // with [cmdName] and the given command name string combined |
| 94 | // to form a string representing the complete command being run. |
| 95 | func cmdString(cmd string) string { |
| 96 | if cmd == "" { |
| 97 | return cmdName() |
| 98 | } |
| 99 | return cmdName() + " " + cmd |
| 100 | } |