feat(step): Add atuin step (#1367)

This commit is contained in:
Stef
2025-10-19 14:09:40 +02:00
committed by GitHub
parent 65a30292a3
commit 2259e81bb0
2 changed files with 15 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ pub enum Step {
Aqua,
Asdf,
Atom,
Atuin,
Audit,
AutoCpufreq,
Bin,
@@ -202,6 +203,11 @@ impl Step {
)))]
runner.execute(*self, "apm", || generic::run_apm(ctx))?
}
Atuin =>
{
#[cfg(unix)]
runner.execute(*self, "atuin", || unix::run_atuin(ctx))?
}
Audit => {
#[cfg(target_os = "dragonfly")]
runner.execute(*self, "DragonFly Audit", || dragonfly::audit_packages(ctx))?;
@@ -764,6 +770,7 @@ pub(crate) fn default_steps() -> Vec<Step> {
Sdkman,
Rcm,
Maza,
Atuin,
]);
#[cfg(not(any(

View File

@@ -934,6 +934,14 @@ pub fn run_maza(ctx: &ExecutionContext) -> Result<()> {
ctx.execute(maza).arg("update").status_checked()
}
pub fn run_atuin(ctx: &ExecutionContext) -> Result<()> {
let atuin = require("atuin-update")?;
print_separator("atuin");
ctx.execute(atuin).status_checked()
}
pub fn reboot(ctx: &ExecutionContext) -> Result<()> {
match ctx.sudo() {
Some(sudo) => sudo.execute(ctx, "reboot")?.status_checked(),