mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-03 01:29:16 +02:00
31 lines
797 B
Rust
31 lines
797 B
Rust
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>;
|
|
}
|