Add options to disable Yarn and Pnpm individually. (#260)

* Add options to disable Yarn and Pnpm individualy.

* cargo fmt

Co-authored-by: Thomas Schönauer <37108907+DottoDev@users.noreply.github.com>
This commit is contained in:
Mark Nefedov
2022-12-15 00:42:48 +03:00
committed by GitHub
parent 9f424f03c3
commit 4e56bf07f3
2 changed files with 4 additions and 2 deletions

View File

@@ -126,6 +126,7 @@ pub enum Step {
Pipx,
Pkg,
Pkgin,
Pnpm,
Powershell,
Protonup,
Raco,
@@ -154,6 +155,7 @@ pub enum Step {
Winget,
Wsl,
Yadm,
Yarn,
}
#[derive(Deserialize, Default, Debug)]

View File

@@ -369,8 +369,8 @@ fn run() -> Result<()> {
runner.execute(Step::Kakoune, "Kakoune", || kakoune::upgrade_kak_plug(&ctx))?;
runner.execute(Step::Helix, "helix", || generic::run_helix_grammars(&ctx))?;
runner.execute(Step::Node, "npm", || node::run_npm_upgrade(&ctx))?;
runner.execute(Step::Node, "yarn", || node::run_yarn_upgrade(&ctx))?;
runner.execute(Step::Node, "pnpm", || node::run_pnpm_upgrade(&ctx))?;
runner.execute(Step::Yarn, "yarn", || node::run_yarn_upgrade(&ctx))?;
runner.execute(Step::Pnpm, "pnpm", || node::run_pnpm_upgrade(&ctx))?;
runner.execute(Step::Containers, "Containers", || containers::run_containers(&ctx))?;
runner.execute(Step::Deno, "deno", || node::deno_upgrade(&ctx))?;
runner.execute(Step::Composer, "composer", || generic::run_composer_update(&ctx))?;