mirror of
https://github.com/eRgo35/ah.git
synced 2026-02-04 21:26:11 +01:00
refactor and choose install
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
use crate::packages::PACKAGE_MANAGER;
|
||||
use crate::{file, packages::get_package_path};
|
||||
use colored::Colorize;
|
||||
use std::io::Write;
|
||||
use std::process::{Command, Stdio};
|
||||
|
||||
const PACKAGE_MANAGER: &str = "paru";
|
||||
|
||||
pub fn install(new_packages: Vec<String>) -> Result<(), Box<dyn std::error::Error>> {
|
||||
println!(
|
||||
"{} {}",
|
||||
@@ -24,7 +23,6 @@ pub fn install(new_packages: Vec<String>) -> Result<(), Box<dyn std::error::Erro
|
||||
.arg("always")
|
||||
.arg("-S")
|
||||
.arg("--needed")
|
||||
// .arg(noconfirm)
|
||||
.arg("-")
|
||||
.stdin(Stdio::piped())
|
||||
.stdout(Stdio::inherit())
|
||||
|
||||
Reference in New Issue
Block a user