mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-05 18:24:18 +02:00
Extract ffsend-api to separate repository, move client crate to root
This commit is contained in:
parent
e2b9b5c55c
commit
8ed530a83a
83 changed files with 132 additions and 3984 deletions
31
src/cmd/matcher/mod.rs
Normal file
31
src/cmd/matcher/mod.rs
Normal 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>;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue