pub enum EamTaskCommand {
New {
name: String,
type: String,
target: Vec<String>,
setting: Vec<String>,
definition: Option<PathBuf>,
schedule_mode: ScheduleMode,
},
Force {
name: String,
},
}Expand description
eam task … — the guarded writes (07-02 Task 3). new carries
the typed guard ladder (backup+OnDemand unguarded; mutating
types and any non-OnDemand schedule need –yes;
restore/install/upgrade types refuse outright — see README);
force dispatches NOW, always guarded.
Variants§
New
Create a task definition (scheduleMode defaults to OnDemand — never auto-fires)
Fields
type: StringTask type — the openapi taxonomy, three classes with different guard consequences:
-
benign (no –yes with the default OnDemand schedule): eam_backup
-
mutating (need –yes — they act on their agent targets when dispatched): eam_restart, eam_sendProject, eam_sendResource, eam_sendTags, eam_activateLicense, eam_updateLicense, eam_unactivateLicense
-
refused (exit 6 eam_task_type_refused — fleet-destructive; run from the EAM console): eam_restoreBackup, eam_installModules, eam_remoteUpgrade
Any OTHER type fails safe to the –yes rung (unknown future types stay accepted, never silently unguarded).
Example: ign eam task new nightly-backup eam_backup –target gw-a
setting: Vec<String>Setting as K=V with scalar auto-typing — bool/int ride typed, anything else stays a string (repeatable; arrays/objects need –definition)
definition: Option<PathBuf>Full-JSON settings file deep-merged over the composed
config.settings (the typed/array settings path)
schedule_mode: ScheduleModeSchedule mode (default OnDemand — never auto-fires; Immediate/Scheduled/AtTime/AtDelay require –yes)
Force
Force-dispatch a task NOW — destructive, refused without –yes (it dispatches to the agent targets immediately)
Trait Implementations§
Source§impl Debug for EamTaskCommand
impl Debug for EamTaskCommand
Source§impl FromArgMatches for EamTaskCommand
impl FromArgMatches for EamTaskCommand
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 EamTaskCommand
impl Subcommand for EamTaskCommand
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