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,
|
Dotnet,
|
||||||
Elan,
|
Elan,
|
||||||
Emacs,
|
Emacs,
|
||||||
|
Falconf,
|
||||||
Firmware,
|
Firmware,
|
||||||
Flatpak,
|
Flatpak,
|
||||||
Flutter,
|
Flutter,
|
||||||
@@ -305,6 +306,7 @@ impl Step {
|
|||||||
Dotnet => runner.execute(*self, ".NET", || generic::run_dotnet_upgrade(ctx))?,
|
Dotnet => runner.execute(*self, ".NET", || generic::run_dotnet_upgrade(ctx))?,
|
||||||
Elan => runner.execute(*self, "elan", || generic::run_elan(ctx))?,
|
Elan => runner.execute(*self, "elan", || generic::run_elan(ctx))?,
|
||||||
Emacs => runner.execute(*self, "Emacs", || emacs::Emacs::new().upgrade(ctx))?,
|
Emacs => runner.execute(*self, "Emacs", || emacs::Emacs::new().upgrade(ctx))?,
|
||||||
|
Falconf => runner.execute(*self, "falconf sync", || generic::run_falconf(ctx))?,
|
||||||
Firmware =>
|
Firmware =>
|
||||||
{
|
{
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
@@ -883,6 +885,7 @@ pub(crate) fn default_steps() -> Vec<Step> {
|
|||||||
// JetBrains Space Desktop does not have a CLI
|
// JetBrains Space Desktop does not have a CLI
|
||||||
JetbrainsWebstorm,
|
JetbrainsWebstorm,
|
||||||
Yazi,
|
Yazi,
|
||||||
|
Falconf,
|
||||||
Powershell,
|
Powershell,
|
||||||
CustomCommands,
|
CustomCommands,
|
||||||
Vagrant,
|
Vagrant,
|
||||||
|
|||||||
@@ -1828,3 +1828,11 @@ pub fn run_typst(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
|
|
||||||
ctx.execute(typst).args(["update"]).status_checked()
|
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