refactor(cli): rename cron subcommand to routines

The system manages all routine types (cron, webhook, event, manual),
not just cron schedules. Rename the CLI subcommand to reflect this:
- `ironclaw cron` -> `ironclaw routines` (with `cron` as hidden alias)
- List shows all routines by default, add --trigger filter
- Remove cron-trigger-only validation
- Simplify require_routine helper (no trigger type check)

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
Zaki
2026-03-12 12:06:30 -07:00
co-authored by Claude Opus 4.6
parent 112a4087e7
commit 4aad0cfbaa
7 changed files with 56 additions and 262 deletions
+2 -2
View File
@@ -67,9 +67,9 @@ async fn async_main() -> anyhow::Result<()> {
)
.await;
}
Some(Command::Cron(cron_cmd)) => {
Some(Command::Routines(routines_cmd)) => {
init_cli_tracing();
return ironclaw::cli::run_cron_cli(cron_cmd, cli.config.as_deref()).await;
return ironclaw::cli::run_routines_cli(routines_cmd, cli.config.as_deref()).await;
}
Some(Command::Mcp(mcp_cmd)) => {
init_cli_tracing();