add remove

This commit is contained in:
timeshifter
2023-01-11 15:02:37 +01:00
parent 951cc7ab66
commit d3b4dbfa8a
3 changed files with 42 additions and 4 deletions
+7 -1
View File
@@ -25,6 +25,12 @@ fn get_arg_parser() -> Command<'static> {
.arg_required_else_help(true)
.arg(Arg::new("files").multiple_values(true)),
)
.subcommand(
Command::new(REMOVE)
.about("remove one or more previously imported groups")
.arg_required_else_help(true)
.arg(Arg::new("groups").multiple_values(true)),
)
.subcommand(
Command::new(SHOW)
.about("show packages under an imported group")
@@ -45,7 +51,7 @@ pub fn get() -> clap::ArgMatches {
get_arg_parser().get_matches()
}
pub(crate) fn get_file_paths(arg_match: &ArgMatches) -> Vec<PathBuf> {
pub(crate) fn get_absolutized_file_paths(arg_match: &ArgMatches) -> Vec<PathBuf> {
arg_match
.get_many::<String>("files")
.unwrap()