From 8e9e7b92a3fe514b706d7fb372f8f31ad3168743 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Wed, 6 Mar 2024 16:20:03 +0000 Subject: [PATCH] chore: do not show history table stats when using records (#1835) --- atuin/src/command/client/sync/status.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/atuin/src/command/client/sync/status.rs b/atuin/src/command/client/sync/status.rs index b7b63c22c2a..333a0fad4e4 100644 --- a/atuin/src/command/client/sync/status.rs +++ b/atuin/src/command/client/sync/status.rs @@ -35,14 +35,15 @@ pub async fn run(settings: &Settings, db: &impl Database) -> Result<()> { println!("Last sync: {last_sync}"); } - println!("History count: {local_count}"); - println!("Deleted history count: {deleted_count}\n"); + if !settings.sync.records { + println!("History count: {local_count}"); + println!("Deleted history count: {deleted_count}\n"); + } if settings.auto_sync { println!("{}", "[Remote]".green()); println!("Address: {}", settings.sync_address); println!("Username: {}", status.username); - println!("History count: {}", status.count); } Ok(())