Skip to main content

AppCliExt

Trait AppCliExt 

Source
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§

Source

fn add_flag(&mut self, flag: Flag) -> &mut Self

Declares an option of this plugin.

Source

fn add_front(&mut self, front: Front) -> &mut Self

Offers a front, and declares its option and command.

Source

fn add_secret(&mut self, secret: Secret) -> &mut Self

Asks for a secret, which the launcher gets before the agent starts (see Secrets).

Source

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".

Implementors§