pub trait AppCliExt {
// Required methods
fn add_flag(&mut self, flag: Flag) -> &mut Self;
fn add_front(&mut self, front: Front) -> &mut Self;
fn add_secret(&mut self, secret: Secret) -> &mut Self;
fn runs_front(&mut self, name: &str) -> bool;
}Expand description
Declaring options, fronts and secrets while the app is built.
Required Methods§
Sourcefn add_front(&mut self, front: Front) -> &mut Self
fn add_front(&mut self, front: Front) -> &mut Self
Offers a front, and declares its option and command.
Sourcefn add_secret(&mut self, secret: Secret) -> &mut Self
fn add_secret(&mut self, secret: Secret) -> &mut Self
Asks for a secret, which the launcher gets before the agent starts
(see Secrets).
Sourcefn runs_front(&mut self, name: &str) -> bool
fn runs_front(&mut self, name: &str) -> bool
Whether the front name takes this run. Ask in finish or
cleanup, once every plugin offered its fronts: the first answer
chooses the run’s front.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".