127: Support Pearl r=r-darwish a=r-darwish



Co-authored-by: Roey Darwish Dror <roey.ghost@gmail.com>
This commit is contained in:
bors[bot]
2019-02-19 06:55:57 +00:00
2 changed files with 10 additions and 1 deletions

View File

@@ -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",

View File

@@ -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()
}