[][src]Trait libimagrt::spec::CliSpec

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>

Loading content...

Provided methods

fn completions<W: Write, S: Into<String>>(&mut self, _: S, _: Shell, _: &mut W)

Loading content...

Implementors

impl<'a> CliSpec<'a> for App<'a, 'a>[src]

Loading content...