Trait hermes_cli_framework::application::Application

source ·
pub trait Application: Sized {
    type Config: Config;
    type App;
    type Command: CommandRunner<Self::App>;

    // Required methods
    fn parse_from_env() -> Self;
    fn config_path(&self) -> &Path;
    fn json_output(&self) -> bool;
    fn run(
        &self,
        runtime: HermesRuntime,
    ) -> impl Future<Output = Result<Output>> + Send;
}

Required Associated Types§

Required Methods§

source

fn parse_from_env() -> Self

source

fn config_path(&self) -> &Path

source

fn json_output(&self) -> bool

source

fn run( &self, runtime: HermesRuntime, ) -> impl Future<Output = Result<Output>> + Send

Object Safety§

This trait is not object safe.

Implementors§