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:
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user