add package search

This commit is contained in:
timeshifter
2023-01-12 11:52:13 +01:00
parent 0e60e46f78
commit 76a46e8618
5 changed files with 60 additions and 3 deletions
+6
View File
@@ -44,6 +44,12 @@ fn get_arg_parser() -> Command<'static> {
.arg_required_else_help(true)
.arg(Arg::new("groups").multiple_values(true)),
)
.subcommand(
Command::new(SEARCH)
.about("search for packages which match a provided regex")
.arg_required_else_help(true)
.arg(Arg::new("string")),
)
.subcommand(
Command::new(SHOW)
.about("show packages under an imported group")