implement editing of files

This commit is contained in:
steven-omaha
2022-12-02 17:33:59 +01:00
parent 5ee5aa520c
commit 81c6b04e64
3 changed files with 5 additions and 10 deletions
+2 -5
View File
@@ -2,7 +2,7 @@ use std::collections::HashSet;
use std::process::exit;
use crate::action;
use crate::cmd::run_install_command;
use crate::cmd::{run_edit_command, run_install_command};
use crate::db::{get_all_installed_packages, get_explicitly_installed_packages};
use crate::Group;
use crate::Package;
@@ -62,7 +62,6 @@ impl Pacdef {
pub fn run_action_from_arg(self) {
match self.args.subcommand() {
// Some((args::EDIT, groups)) => println!("{groups:#?}"),
Some((action::EDIT, groups)) => self.edit_group_files(groups),
Some((action::GROUPS, _)) => self.show_groups(),
Some((action::SYNC, _)) => self.install_packages(),
@@ -82,9 +81,7 @@ impl Pacdef {
buf
})
.collect();
for f in files {
println!("{f:#?}");
}
run_edit_command(&files)
}
pub(crate) fn show_version(self) {