mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-03 01:29:16 +02:00
20 lines
445 B
Rust
20 lines
445 B
Rust
use clap::ArgMatches;
|
|
|
|
use super::Matcher;
|
|
|
|
/// The history command matcher.
|
|
pub struct HistoryMatcher<'a> {
|
|
#[allow(unused)]
|
|
matches: &'a ArgMatches<'a>,
|
|
}
|
|
|
|
impl<'a> Matcher<'a> for HistoryMatcher<'a> {
|
|
fn with(matches: &'a ArgMatches) -> Option<Self> {
|
|
matches.subcommand_matches("history")
|
|
.map(|matches|
|
|
HistoryMatcher {
|
|
matches,
|
|
}
|
|
)
|
|
}
|
|
}
|