05cb353f7f
- 22 AI providers (OpenRouter, Anthropic, OpenAI, Mistral, etc.) - 7 channels (CLI, Telegram, Discord, Slack, iMessage, Matrix, Webhook) - 5-step onboarding wizard with Project Context personalization - OpenClaw-aligned system prompt (SOUL.md, IDENTITY.md, USER.md, AGENTS.md, etc.) - SQLite memory backend with auto-save - Skills system with on-demand loading - Security: autonomy levels, command allowlists, cost limits - 532 tests passing, 0 clippy warnings
26 lines
801 B
Rust
26 lines
801 B
Rust
use crate::config::Config;
|
|
use anyhow::Result;
|
|
|
|
pub fn handle_command(command: super::CronCommands, _config: Config) -> Result<()> {
|
|
match command {
|
|
super::CronCommands::List => {
|
|
println!("No scheduled tasks yet.");
|
|
println!("\nUsage:");
|
|
println!(" zeroclaw cron add '0 9 * * *' 'agent -m \"Good morning!\"'");
|
|
Ok(())
|
|
}
|
|
super::CronCommands::Add {
|
|
expression,
|
|
command,
|
|
} => {
|
|
println!("Cron scheduling coming soon!");
|
|
println!(" Expression: {expression}");
|
|
println!(" Command: {command}");
|
|
Ok(())
|
|
}
|
|
super::CronCommands::Remove { id } => {
|
|
anyhow::bail!("Remove task '{id}' not yet implemented");
|
|
}
|
|
}
|
|
}
|