Add documentation for CliSpec

This commit is contained in:
Robert Ignat 2017-06-06 22:38:08 +02:00 committed by Matthias Beyer
parent 52b377eaa1
commit 8fbfd844a5

View file

@ -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>;