Support Pearl (fix #126)
This commit is contained in:
@@ -294,6 +294,8 @@ fn run() -> Result<(), Error> {
|
||||
|| generic::run_pipx_update(run_type),
|
||||
config.no_retry(),
|
||||
)?;
|
||||
#[cfg(unix)]
|
||||
execute(&mut report, "pearl", || unix::run_pearl(run_type), config.no_retry())?;
|
||||
execute(
|
||||
&mut report,
|
||||
"jetpak",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use crate::error::Error;
|
||||
use crate::executor::{CommandExt, RunType};
|
||||
use crate::terminal::print_separator;
|
||||
use crate::utils::which;
|
||||
use crate::utils::{require, which};
|
||||
use directories::BaseDirs;
|
||||
use std::path::Path;
|
||||
use std::process::Command;
|
||||
@@ -99,3 +99,10 @@ pub fn run_nix(run_type: RunType) -> Option<(&'static str, bool)> {
|
||||
|
||||
None
|
||||
}
|
||||
|
||||
pub fn run_pearl(run_type: RunType) -> Result<(), Error> {
|
||||
let pearl = require("pearl")?;
|
||||
print_separator("pearl");
|
||||
|
||||
run_type.execute(&pearl).arg("update").check_run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user