From 02fe1087def8ec59e58bfd90af1c9a4b30497ae8 Mon Sep 17 00:00:00 2001 From: Gideon <87426140+GideonBear@users.noreply.github.com> Date: Sat, 8 Nov 2025 11:10:45 +0100 Subject: [PATCH] feat(falconf): add falconf step (#1219) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- src/step.rs | 3 +++ src/steps/generic.rs | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/src/step.rs b/src/step.rs index 8c62a3b7..a0f14720 100644 --- a/src/step.rs +++ b/src/step.rs @@ -53,6 +53,7 @@ pub enum Step { Dotnet, Elan, Emacs, + Falconf, Firmware, Flatpak, Flutter, @@ -305,6 +306,7 @@ impl Step { Dotnet => runner.execute(*self, ".NET", || generic::run_dotnet_upgrade(ctx))?, Elan => runner.execute(*self, "elan", || generic::run_elan(ctx))?, Emacs => runner.execute(*self, "Emacs", || emacs::Emacs::new().upgrade(ctx))?, + Falconf => runner.execute(*self, "falconf sync", || generic::run_falconf(ctx))?, Firmware => { #[cfg(target_os = "linux")] @@ -883,6 +885,7 @@ pub(crate) fn default_steps() -> Vec { // JetBrains Space Desktop does not have a CLI JetbrainsWebstorm, Yazi, + Falconf, Powershell, CustomCommands, Vagrant, diff --git a/src/steps/generic.rs b/src/steps/generic.rs index fb829d1f..2f7ddd42 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -1828,3 +1828,11 @@ pub fn run_typst(ctx: &ExecutionContext) -> Result<()> { ctx.execute(typst).args(["update"]).status_checked() } + +pub fn run_falconf(ctx: &ExecutionContext) -> Result<()> { + let falconf = require("falconf")?; + + print_separator("falconf sync"); + + ctx.execute(falconf).arg("sync").status_checked() +}