feat: support LURE (#537)
This commit is contained in:
@@ -143,6 +143,7 @@ pub enum Step {
|
|||||||
Kakoune,
|
Kakoune,
|
||||||
Helix,
|
Helix,
|
||||||
Krew,
|
Krew,
|
||||||
|
Lure,
|
||||||
Macports,
|
Macports,
|
||||||
Mamba,
|
Mamba,
|
||||||
Miktex,
|
Miktex,
|
||||||
|
|||||||
@@ -205,6 +205,7 @@ fn run() -> Result<()> {
|
|||||||
runner.execute(Step::BrewFormula, "Brew", || {
|
runner.execute(Step::BrewFormula, "Brew", || {
|
||||||
unix::run_brew_formula(&ctx, unix::BrewVariant::Path)
|
unix::run_brew_formula(&ctx, unix::BrewVariant::Path)
|
||||||
})?;
|
})?;
|
||||||
|
runner.execute(Step::Lure, "LURE", || linux::run_lure_update(&ctx))?;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
|
|||||||
@@ -913,6 +913,22 @@ pub fn run_config_update(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn run_lure_update(ctx: &ExecutionContext) -> Result<()> {
|
||||||
|
let lure = require("lure")?;
|
||||||
|
|
||||||
|
print_separator("LURE");
|
||||||
|
|
||||||
|
let mut exe = ctx.run_type().execute(lure);
|
||||||
|
|
||||||
|
if ctx.config().yes(Step::Lure) {
|
||||||
|
exe.args(["-i=false", "up"]);
|
||||||
|
} else {
|
||||||
|
exe.arg("up");
|
||||||
|
}
|
||||||
|
|
||||||
|
exe.status_checked()
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|||||||
Reference in New Issue
Block a user