Trait libimagrt::spec::CliSpec
[−]
[src]
pub trait CliSpec<'a> { fn name(&self) -> &str; fn matches(self) -> ArgMatches<'a>; fn completions<W: Write, S: Into<String>>(
&mut self,
_: S,
_: Shell,
_: &mut W
) { ... } }
An abstraction over clap::App
functionality needed for initializing Runtime
. Different
implementations can be used for testing imag
binaries without running them as separate
processes.
Required Methods
fn name(&self) -> &str
fn matches(self) -> ArgMatches<'a>
Provided Methods
Implementors
impl<'a> CliSpec<'a> for App<'a, 'a>