pub enum Command {
Show 15 variants
Init,
Pull {
ids: Vec<String>,
},
Config {
action: ConfigAction,
},
Remote {
action: RemoteAction,
},
Push {
dry_run: bool,
confirm: bool,
action: Option<PushAction>,
},
Status,
Doctor {
action: Option<DoctorAction>,
},
Purge {
older_than_days: Option<u64>,
action: Option<PurgeAction>,
},
Skill {
action: SkillAction,
},
Triage {
action: TriageAction,
},
Message {
action: MessageAction,
},
Case {
action: CaseCommand,
},
Archive {
action: ArchiveAction,
},
Render {
action: RenderAction,
},
Log {
action: LogAction,
},
}Variants§
Init
Initialize the current directory as an afmail workspace.
Pull
Read configured IMAP mailbox ids into local message files without changing remote mail.
Fields
Config
Read or update local afmail configuration.
Fields
action: ConfigActionRemote
Inspect remote IMAP state for configuring mailboxes.
Fields
action: RemoteActionPush
Push queued local work or manage the local push queue.
Fields
action: Option<PushAction>Status
Report workspace health, counts, and latest pull/push progress.
Doctor
Check afmail workspace consistency without inspecting Git.
Fields
action: Option<DoctorAction>Purge
Permanently delete old local spam, trash, and remote-deleted records.
Fields
older_than_days: Option<u64>Only purge messages in a discard state at least this many days ago. Defaults to 30.
action: Option<PurgeAction>Skill
Manage the Agent-First Mail skill for Codex, Claude Code, and opencode.
Fields
action: SkillActionTriage
Inspect the triage queue.
Fields
action: TriageActionMessage
Operate on any local message id.
Fields
action: MessageActionCase
Create a case or operate on an existing case ref.
Fields
action: CaseCommandArchive
Inspect and manage archived cases and direct-message archive categories.
Fields
action: ArchiveActionRender
Rebuild generated read views from local workspace state.
Fields
action: RenderActionLog
Inspect the workspace audit log.
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Subcommand for Command
impl Subcommand for Command
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 subcommand