Racket package manager support (#667)

This commit is contained in:
Seλçuk Öztürk
2021-03-14 13:12:38 +03:00
committed by GitHub
parent 8bf3d70e5f
commit bf986e313c
3 changed files with 10 additions and 0 deletions

View File

@@ -98,6 +98,7 @@ pub enum Step {
Pip3,
Pkg,
Powershell,
Raco,
Remotes,
Restarts,
Rtcl,

View File

@@ -312,6 +312,7 @@ fn run() -> Result<()> {
generic::run_gcloud_components_update(run_type)
})?;
runner.execute(Step::Micro, "micro", || generic::run_micro(run_type))?;
runner.execute(Step::Raco, "raco", || generic::run_raco_update(run_type))?;
#[cfg(target_os = "linux")]
{

View File

@@ -398,3 +398,11 @@ pub fn run_dotnet_upgrade(ctx: &ExecutionContext) -> Result<()> {
Ok(())
}
pub fn run_raco_update(run_type: RunType) -> Result<()> {
let raco = utils::require("raco")?;
print_separator("Racket Package Manager");
run_type.execute(&raco).args(&["pkg", "update", "--all"]).check_run()
}