(commandLine string, exitCode int)
| 119 | } |
| 120 | |
| 121 | func FormatExitCode(commandLine string, exitCode int) string { |
| 122 | interpretation := InterpretCommandResult(commandLine, exitCode) |
| 123 | if interpretation.IsError { |
| 124 | return fmt.Sprintf("[Exit code: %d — ERROR: %s]", exitCode, interpretation.Description) |
| 125 | } |
| 126 | return fmt.Sprintf("[Exit code: %d — %s]", exitCode, interpretation.Description) |
| 127 | } |
| 128 | |
| 129 | func ParseBase(command string) (string, string) { |
| 130 | tokens := strings.Fields(strings.TrimSpace(command)) |
no test coverage detected