feat(falconf): add falconf step (#1219)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Gideon
2025-11-08 11:10:45 +01:00
committed by GitHub
parent 34b7943fd1
commit 02fe1087de
2 changed files with 11 additions and 0 deletions

View File

@@ -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<Step> {
// JetBrains Space Desktop does not have a CLI
JetbrainsWebstorm,
Yazi,
Falconf,
Powershell,
CustomCommands,
Vagrant,

View File

@@ -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()
}