MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / FormatExitCode

Function FormatExitCode

tools/bash/semantics.go:121–127  ·  view source on GitHub ↗
(commandLine string, exitCode int)

Source from the content-addressed store, hash-verified

119}
120
121func 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
129func ParseBase(command string) (string, string) {
130 tokens := strings.Fields(strings.TrimSpace(command))

Callers 2

runTaskMethod · 0.85
formatBackgroundExitCodeFunction · 0.85

Calls 1

InterpretCommandResultFunction · 0.85

Tested by

no test coverage detected