hclsys
ba80695bba
fix(cli): exit 0 when invoking parent commands without a subcommand ( #73077 )
...
Several `openclaw <parent>` commands (channels, plugins, approvals, devices,
cron, mcp) were exiting with code 1 when invoked bare, while printing the
same help-style content that `<parent> --help` produces (which exits 0).
This broke `&&` chains and surfaced a misleading
`ELIFECYCLE Command failed with exit code 1.` line under pnpm.
Add a small `applyParentDefaultHelpAction(cmd)` helper in
`src/cli/program/parent-default-help.ts` that attaches a default action
which prints the parent's own help and sets `process.exitCode = 0`. The
helper is a no-op when the parent already has its own action (e.g.
`agents` defaulting to `agents list`), so existing intentional defaults
are preserved.
Apply it to the six core parents listed in #73077 .
2026-04-28 02:40:44 +01:00
..
2026-04-28 00:24:54 +01:00
2026-04-27 21:58:48 +01:00
2026-04-28 00:55:11 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:45:58 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-27 17:30:43 -07:00
2026-04-27 21:58:48 +01:00
2026-04-28 01:21:39 +01:00
2026-04-28 01:14:19 +01:00
2026-04-27 10:22:20 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:21:39 +01:00
2026-04-28 01:14:19 +01:00
2026-04-25 10:31:52 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:21:39 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 00:24:54 +01:00
2026-04-27 17:07:02 -07:00
2026-04-27 14:15:53 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 02:36:48 +01:00
2026-04-25 10:31:52 +01:00
2026-04-27 14:58:32 +01:00
2026-04-28 01:14:19 +01:00
2026-04-25 10:31:52 +01:00
2026-04-28 00:55:11 +01:00
2026-04-28 02:38:31 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 02:31:21 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 00:24:54 +01:00
2026-04-27 14:34:00 +01:00
2026-04-28 02:31:21 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:45:58 +01:00
2026-04-28 01:14:19 +01:00
2026-04-27 21:02:53 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:45:58 +01:00
2026-04-25 04:31:10 -07:00
2026-04-28 02:40:44 +01:00
2026-04-28 02:38:31 +01:00
2026-04-28 00:24:54 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 00:24:54 +01:00
2026-04-27 12:35:58 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 02:31:21 +01:00
2026-04-28 00:55:11 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-25 10:31:52 +01:00
2026-04-28 02:38:31 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:21:39 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 00:24:54 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:31:00 +01:00
2026-04-27 16:21:37 -04:00
2026-04-28 01:14:19 +01:00
2026-04-27 21:58:48 +01:00
2026-04-28 02:38:31 +01:00
2026-04-28 00:55:11 +01:00
2026-04-27 14:58:32 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 00:55:11 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 02:31:21 +01:00
2026-04-28 00:24:54 +01:00
2026-04-28 02:31:21 +01:00
2026-04-27 14:15:16 -07:00
2026-04-25 10:31:52 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 00:55:11 +01:00
2026-04-27 14:58:32 +01:00
2026-04-27 14:58:32 +01:00
2026-04-28 02:31:21 +01:00
2026-04-25 10:31:52 +01:00
2026-04-28 01:14:19 +01:00
2026-04-27 14:58:32 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 00:55:11 +01:00
2026-04-28 00:24:54 +01:00
2026-04-27 14:58:32 +01:00
2026-04-27 21:02:53 +01:00
2026-04-28 01:14:19 +01:00
2026-04-27 10:06:30 +01:00
2026-04-27 14:34:00 +01:00
2026-04-27 14:58:32 +01:00
2026-04-28 00:24:54 +01:00
2026-04-28 01:14:19 +01:00
2026-04-25 10:31:52 +01:00
2026-04-28 01:14:19 +01:00
2026-04-25 10:31:52 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 02:31:21 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-28 01:14:19 +01:00
2026-04-17 02:23:49 -04:00
2026-04-28 01:14:19 +01:00
2026-04-09 23:59:00 +01:00
2026-04-28 01:14:19 +01:00