diff options
Diffstat (limited to 'crates/client')
| -rw-r--r-- | crates/client/Cargo.toml | 1 | ||||
| -rw-r--r-- | crates/client/src/command/client/history/start.rs | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/crates/client/Cargo.toml b/crates/client/Cargo.toml index fd5ea57a..058f2f3a 100644 --- a/crates/client/Cargo.toml +++ b/crates/client/Cargo.toml @@ -14,6 +14,7 @@ repository = { workspace = true } [dependencies] turtle-daemon = {workspace = true} turtle-common = {workspace = true} +turtle = { workspace = true } clap = { version = "4.5.7", features = ["derive"] } clap_complete = "4.5.8" clap_complete_nushell = "4.5.4" diff --git a/crates/client/src/command/client/history/start.rs b/crates/client/src/command/client/history/start.rs index 81aaa904..defd46a3 100644 --- a/crates/client/src/command/client/history/start.rs +++ b/crates/client/src/command/client/history/start.rs @@ -6,9 +6,10 @@ use crate::{ use eyre::{Result, eyre}; use time::OffsetDateTime; use tracing::debug; +use turtle::History; use turtle_common::utils; use turtle_daemon::{ - aclient::history::{History, SettingsFilter}, + aclient::history::SettingsFilter, api::client::{HistoryClient, daemon_matches_expected, daemon_mismatch_message}, }; @@ -23,7 +24,7 @@ pub(super) async fn handle( let cwd = utils::get_current_dir(); let command = normalize_command_for_storage(command, settings); - let mut h: History = History::capture() + let mut h: History = History::daemon() .timestamp(OffsetDateTime::now_utc()) .command(command) .cwd(cwd) |
