diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-06-07 15:56:35 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@atos.net> | 2021-06-07 15:56:35 +0200 |
commit | dd8c3cb7b59ba2bac1ebf83694a50e3ef210f7fd (patch) | |
tree | c325df92c5de4b20cc9dfd8b5c1521feed53bc02 /src/cli.rs | |
parent | c0609a050da45bdb93fbb5f2ad28055e1343c08f (diff) |
Revert "Add support for filtering releases by package name and version"
Filtering the releases from the database should not be done via a regex in the
application code. Rationale is that filtering with a regex is only wanted if the
user _searches_ for something. In this instance, the user is expected to know
already what they want to see, so this is not a _search_, but a _filtering_.
Hence, we rather implement the filtering via an appropriate database query
instead of loading all releases and then filtering by regex.
This reverts commit b665c7cd4aa4ea900dc194a6ba5ad9de527f978c.
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -390,25 +390,6 @@ pub fn cli<'a>() -> App<'a> { .arg(arg_older_than_date("List only releases older than DATE")) .arg(arg_newer_than_date("List only releases newer than DATE")) - .arg(Arg::new("package_name_regex") - .required(false) - .multiple(false) - .long("pkg") - .short('p') - .takes_value(true) - .value_name("REGEX") - .about("Limit search with package name matching REGEX") - ) - .arg(Arg::new("package_version_constraint") - .required(false) - .multiple(false) - .long("version") - .short('v') - .takes_value(true) - .value_name("VERSION_CONSTRAINT") - .about("Limit search for package in version VERSION") - ) - .arg(Arg::new("store") .required(false) .multiple(false) |