feat: support miktex packages update (#535)
This commit is contained in:
@@ -145,6 +145,7 @@ pub enum Step {
|
|||||||
Krew,
|
Krew,
|
||||||
Macports,
|
Macports,
|
||||||
Mamba,
|
Mamba,
|
||||||
|
Miktex,
|
||||||
Mas,
|
Mas,
|
||||||
Maza,
|
Maza,
|
||||||
Micro,
|
Micro,
|
||||||
|
|||||||
@@ -322,6 +322,7 @@ fn run() -> Result<()> {
|
|||||||
runner.execute(Step::Pipx, "pipx", || generic::run_pipx_update(&ctx))?;
|
runner.execute(Step::Pipx, "pipx", || generic::run_pipx_update(&ctx))?;
|
||||||
runner.execute(Step::Conda, "conda", || generic::run_conda_update(&ctx))?;
|
runner.execute(Step::Conda, "conda", || generic::run_conda_update(&ctx))?;
|
||||||
runner.execute(Step::Mamba, "mamba", || generic::run_mamba_update(&ctx))?;
|
runner.execute(Step::Mamba, "mamba", || generic::run_mamba_update(&ctx))?;
|
||||||
|
runner.execute(Step::Miktex, "miktex", || generic::run_miktex_packages_update(&ctx))?;
|
||||||
runner.execute(Step::Pip3, "pip3", || generic::run_pip3_update(&ctx))?;
|
runner.execute(Step::Pip3, "pip3", || generic::run_pip3_update(&ctx))?;
|
||||||
runner.execute(Step::PipReview, "pip-review", || generic::run_pip_review_update(&ctx))?;
|
runner.execute(Step::PipReview, "pip-review", || generic::run_pip_review_update(&ctx))?;
|
||||||
runner.execute(Step::PipReviewLocal, "pip-review (local)", || {
|
runner.execute(Step::PipReviewLocal, "pip-review (local)", || {
|
||||||
|
|||||||
@@ -367,6 +367,16 @@ pub fn run_mamba_update(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
command.status_checked()
|
command.status_checked()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn run_miktex_packages_update(ctx: &ExecutionContext) -> Result<()> {
|
||||||
|
let miktex = require("miktex")?;
|
||||||
|
print_separator("miktex");
|
||||||
|
|
||||||
|
ctx.run_type()
|
||||||
|
.execute(miktex)
|
||||||
|
.args(["packages", "update"])
|
||||||
|
.status_checked()
|
||||||
|
}
|
||||||
|
|
||||||
pub fn run_pip3_update(ctx: &ExecutionContext) -> Result<()> {
|
pub fn run_pip3_update(ctx: &ExecutionContext) -> Result<()> {
|
||||||
let py = require("python").and_then(check_is_python_2_or_shim);
|
let py = require("python").and_then(check_is_python_2_or_shim);
|
||||||
let py3 = require("python3").and_then(check_is_python_2_or_shim);
|
let py3 = require("python3").and_then(check_is_python_2_or_shim);
|
||||||
|
|||||||
Reference in New Issue
Block a user