Extract ffsend-api to separate repository, move client crate to root

This commit is contained in:
timvisee 2018-05-21 22:05:18 +02:00
parent e2b9b5c55c
commit 8ed530a83a
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2
83 changed files with 132 additions and 3984 deletions

31
src/cmd/matcher/mod.rs Normal file
View file

@ -0,0 +1,31 @@
pub mod debug;
pub mod delete;
pub mod download;
pub mod exists;
#[cfg(feature = "history")]
pub mod history;
pub mod info;
pub mod main;
pub mod params;
pub mod password;
pub mod upload;
// Reexport to matcher module
pub use self::debug::DebugMatcher;
pub use self::delete::DeleteMatcher;
pub use self::download::DownloadMatcher;
pub use self::exists::ExistsMatcher;
#[cfg(feature = "history")]
pub use self::history::HistoryMatcher;
pub use self::info::InfoMatcher;
pub use self::main::MainMatcher;
pub use self::params::ParamsMatcher;
pub use self::password::PasswordMatcher;
pub use self::upload::UploadMatcher;
use clap::ArgMatches;
pub trait Matcher<'a>: Sized {
// Construct a new matcher instance from these argument matches.
fn with(matches: &'a ArgMatches) -> Option<Self>;
}