diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-13 15:42:59 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-13 15:42:59 +0200 |
| commit | 717a68c9b135b13219002166480f0c06bcb37d7c (patch) | |
| tree | a3bf474cf81f978558b960096477c12a7d37b6d4 /crates/turtle/src/command/client/history.rs | |
| parent | fix(sqlite): Ensure that database migration runs sequentially (diff) | |
| download | atuin-717a68c9b135b13219002166480f0c06bcb37d7c.zip | |
chore(daemon): Remove the `autostart` feature
A service manager should deal with that.
Diffstat (limited to 'crates/turtle/src/command/client/history.rs')
| -rw-r--r-- | crates/turtle/src/command/client/history.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/crates/turtle/src/command/client/history.rs b/crates/turtle/src/command/client/history.rs index fcc622d7..fde73449 100644 --- a/crates/turtle/src/command/client/history.rs +++ b/crates/turtle/src/command/client/history.rs @@ -5,12 +5,14 @@ use std::{ time::Duration, }; -use crate::atuin_common::utils::{self, Escapable as _}; +use crate::{ + atuin_common::utils::{self, Escapable as _}, + command::client::daemon, +}; use clap::Subcommand; use eyre::{Context, Result, bail}; use runtime_format::{FormatKey, FormatKeyError, ParseSegment, ParsedFmt}; -use super::daemon as daemon_cmd; use colored::Colorize; use serde::Serialize; @@ -30,7 +32,6 @@ use crate::atuin_client::{ use log::debug; use time::{OffsetDateTime, macros::format_description}; -use super::daemon; use super::search::format_duration_into; #[derive(Subcommand, Debug)] @@ -855,7 +856,7 @@ impl Cmd { history_store.incremental_build(db, &[id]).await?; } - daemon_cmd::emit_event(settings, crate::atuin_daemon::DaemonEvent::HistoryPruned).await; + daemon::emit_event(settings, crate::atuin_daemon::DaemonEvent::HistoryPruned).await; } Ok(()) } @@ -910,7 +911,7 @@ impl Cmd { history_store.incremental_build(db, &[id]).await?; } - daemon_cmd::emit_event( + daemon::emit_event( settings, crate::atuin_daemon::DaemonEvent::HistoryDeleted { ids }, ) |
