feat(typst): add typst step (#1374)
This commit is contained in:
@@ -149,6 +149,7 @@ pub enum Step {
|
|||||||
Tlmgr,
|
Tlmgr,
|
||||||
Tmux,
|
Tmux,
|
||||||
Toolbx,
|
Toolbx,
|
||||||
|
Typst,
|
||||||
Uv,
|
Uv,
|
||||||
Vagrant,
|
Vagrant,
|
||||||
Vcpkg,
|
Vcpkg,
|
||||||
@@ -615,6 +616,7 @@ impl Step {
|
|||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
runner.execute(*self, "toolbx", || toolbx::run_toolbx(ctx))?
|
runner.execute(*self, "toolbx", || toolbx::run_toolbx(ctx))?
|
||||||
}
|
}
|
||||||
|
Typst => runner.execute(*self, "Typst", || generic::run_typst(ctx))?,
|
||||||
Uv => runner.execute(*self, "uv", || generic::run_uv(ctx))?,
|
Uv => runner.execute(*self, "uv", || generic::run_uv(ctx))?,
|
||||||
Vagrant => {
|
Vagrant => {
|
||||||
if ctx.config().should_run(Vagrant) {
|
if ctx.config().should_run(Vagrant) {
|
||||||
@@ -877,6 +879,7 @@ pub(crate) fn default_steps() -> Vec<Step> {
|
|||||||
Powershell,
|
Powershell,
|
||||||
CustomCommands,
|
CustomCommands,
|
||||||
Vagrant,
|
Vagrant,
|
||||||
|
Typst,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
steps.shrink_to_fit();
|
steps.shrink_to_fit();
|
||||||
|
|||||||
@@ -1751,3 +1751,11 @@ pub fn run_yazi(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
|
|
||||||
ctx.execute(ya).args(["pkg", "upgrade"]).status_checked()
|
ctx.execute(ya).args(["pkg", "upgrade"]).status_checked()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn run_typst(ctx: &ExecutionContext) -> Result<()> {
|
||||||
|
let typst = require("typst")?;
|
||||||
|
|
||||||
|
print_separator("Typst");
|
||||||
|
|
||||||
|
ctx.execute(typst).args(["update"]).status_checked()
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user