Compare commits

..

No commits in common. "hermes-repair/sonar-AZ-IckhO1fRfbdzqD-5r" and "main" have entirely different histories.

View File

@ -66,7 +66,10 @@ func runMain(logger *log.Logger, args []string) int {
return 1
}
case "intent":
return runIntentCommand(logger, args[2:])
if err := intentCommand(logger, args[2:]); err != nil {
logger.Printf("intent failed: %v", err)
return 1
}
case "help", "-h", "--help":
usage()
default:
@ -77,14 +80,6 @@ func runMain(logger *log.Logger, args []string) int {
return 0
}
func runIntentCommand(logger *log.Logger, args []string) int {
if err := intentCommand(logger, args); err != nil {
logger.Printf("intent failed: %v", err)
return 1
}
return 0
}
// usage runs one orchestration or CLI step.
// Signature: usage().
// Why: keeps behavior explicit so startup/shutdown workflows remain maintainable as services evolve.