Enum CronCommands
pub enum CronCommands {
List,
Add {
expression: String,
agent_alias: String,
tz: Option<String>,
prompt: bool,
allowed_tools: Vec<String>,
uses_memory: Option<bool>,
delivery: CronDeliveryArgs,
command: String,
},
AddAt {
at: String,
agent_alias: String,
prompt: bool,
allowed_tools: Vec<String>,
uses_memory: Option<bool>,
delivery: CronDeliveryArgs,
command: String,
},
AddEvery {
every_ms: u64,
agent_alias: String,
prompt: bool,
allowed_tools: Vec<String>,
uses_memory: Option<bool>,
delivery: CronDeliveryArgs,
command: String,
},
Once {
delay: String,
agent_alias: String,
prompt: bool,
allowed_tools: Vec<String>,
uses_memory: Option<bool>,
delivery: CronDeliveryArgs,
command: String,
},
Remove {
id: String,
},
Update {
id: String,
agent_alias: String,
expression: Option<String>,
tz: Option<String>,
command: Option<String>,
name: Option<String>,
allowed_tools: Vec<String>,
uses_memory: Option<bool>,
delivery: CronDeliveryArgs,
},
Pause {
id: String,
},
Resume {
id: String,
},
}Expand description
Cron subcommands
Variants§
List
List all scheduled tasks
Add
Add a new scheduled task
Fields
agent_alias: StringConfigured agent alias the cron job runs as. Required — there is no default agent.
allowed_tools: Vec<String>Restrict agent cron jobs to the specified tool names (repeatable, prompt-only).
uses_memory: Option<bool>If false, disable memory recall for this agent cron job (default: true). Set to false for stateless digest/report jobs that should not accumulate or consume memory.
delivery: CronDeliveryArgsDelivery of the job’s output to a channel (see --channel / --to).
AddAt
Add a one-shot scheduled task at an RFC3339 timestamp with explicit Z or offset
Fields
allowed_tools: Vec<String>Restrict agent cron jobs to the specified tool names (repeatable, prompt-only).
delivery: CronDeliveryArgsDelivery of the job’s output to a channel (see --channel / --to).
AddEvery
Add a fixed-interval scheduled task
Fields
allowed_tools: Vec<String>Restrict agent cron jobs to the specified tool names (repeatable, prompt-only).
delivery: CronDeliveryArgsDelivery of the job’s output to a channel (see --channel / --to).
Once
Add a one-shot delayed task (e.g. “30m”, “2h”, “1d”)
Fields
allowed_tools: Vec<String>Restrict agent cron jobs to the specified tool names (repeatable, prompt-only).
delivery: CronDeliveryArgsDelivery of the job’s output to a channel (see --channel / --to).
Remove
Remove a scheduled task
Update
Update a scheduled task
Fields
agent_alias: StringConfigured agent alias. Required. The alias risk profile gates shell commands for shell jobs.
allowed_tools: Vec<String>Replace the agent job allowlist with the specified tool names (repeatable)
delivery: CronDeliveryArgsDelivery of the job’s output to a channel (see --channel / --to).
Pause
Pause a scheduled task
Resume
Resume a paused task
Trait Implementations§
Source§impl Clone for CronCommands
impl Clone for CronCommands
Source§fn clone(&self) -> CronCommands
fn clone(&self) -> CronCommands
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CronCommands
impl Debug for CronCommands
Source§impl<'de> Deserialize<'de> for CronCommands
impl<'de> Deserialize<'de> for CronCommands
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for CronCommands
Source§impl FromArgMatches for CronCommands
impl FromArgMatches for CronCommands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl PartialEq for CronCommands
impl PartialEq for CronCommands
Source§impl Serialize for CronCommands
impl Serialize for CronCommands
impl StructuralPartialEq for CronCommands
Source§impl Subcommand for CronCommands
impl Subcommand for CronCommands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for CronCommands
impl RefUnwindSafe for CronCommands
impl Send for CronCommands
impl Sync for CronCommands
impl Unpin for CronCommands
impl UnsafeUnpin for CronCommands
impl UnwindSafe for CronCommands
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more