Trait FromCli

Source
pub trait FromCli {
    type FromCliContext;
    type FromCliError;

    // Required method
    fn from_cli(
        optional_clap_variant: Option<<Self as ToCli>::CliVariant>,
        context: Self::FromCliContext,
    ) -> ResultFromCli<<Self as ToCli>::CliVariant, Self::FromCliError>
       where Self: Sized + ToCli;
}
Expand description

This trait drives the state machine of interactive_clap

It selects next command variants with inquire::Select and prompts for non-optional arguments with inquire::CustomType

Required Associated Types§

Required Methods§

Source

fn from_cli( optional_clap_variant: Option<<Self as ToCli>::CliVariant>, context: Self::FromCliContext, ) -> ResultFromCli<<Self as ToCli>::CliVariant, Self::FromCliError>
where Self: Sized + ToCli,

Implementors§