Enha(tools): success msg for shell commands

This commit is contained in:
Grail Finder
2026-01-13 16:20:49 +03:00
parent ed504ba43c
commit 93de9f7bd9

View File

@@ -684,6 +684,12 @@ func executeCommand(args map[string]string) []byte {
return []byte(msg) return []byte(msg)
} }
// Check if output is empty and return success message
if len(output) == 0 {
successMsg := fmt.Sprintf("command '%s %s' executed successfully and exited with code 0", command, strings.Join(cmdArgs, " "))
return []byte(successMsg)
}
return output return output
} }