Redo CLI command handling, make it modular with detached matchers

This commit is contained in:
timvisee 2018-04-04 01:23:50 +02:00
parent e0e7d7d009
commit 7ced1f4278
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2
36 changed files with 938 additions and 707 deletions

View file

@ -15,6 +15,7 @@ const HEADER_AUTH_NONCE: &'static str = "WWW-Authenticate";
/// The default download count.
pub const PARAMS_DEFAULT_DOWNLOAD: u8 = 1;
pub const PARAMS_DEFAULT_DOWNLOAD_STR: &'static str = "1";
/// The minimum allowed number of downloads, enforced by the server.
pub const PARAMS_DOWNLOAD_MIN: u8 = 1;