Add documentation for CliSpec
This commit is contained in:
parent
52b377eaa1
commit
8fbfd844a5
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,9 @@ use std::io::Write;
|
|||
|
||||
use clap::{App, ArgMatches, Shell};
|
||||
|
||||
/// 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.
|
||||
pub trait CliSpec<'a> {
|
||||
fn name(&self) -> &str;
|
||||
fn matches(self) -> ArgMatches<'a>;
|
||||
|
|
Loading…
Reference in a new issue