aboutsummaryrefslogtreecommitdiffstats
path: root/crates/turtle/src/command/client/sync/status.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-09 21:43:23 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-07-09 21:43:23 +0200
commit3223d93cb3c77ab02aa0a35f2a8314e447cee9a4 (patch)
tree3971a1f37f5fe3cadb747c5229a0d54e868e45e3 /crates/turtle/src/command/client/sync/status.rs
parentfix(client/sync): Pass through precise error on `SyncError::WrongKey` (diff)
downloadatuin-3223d93cb3c77ab02aa0a35f2a8314e447cee9a4.zip
chore: Separate daemon, client, server, and lib into crates
Diffstat (limited to 'crates/turtle/src/command/client/sync/status.rs')
-rw-r--r--crates/turtle/src/command/client/sync/status.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/crates/turtle/src/command/client/sync/status.rs b/crates/turtle/src/command/client/sync/status.rs
deleted file mode 100644
index caf3b90f..00000000
--- a/crates/turtle/src/command/client/sync/status.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-use crate::atuin_client::settings::Settings;
-use crate::{SHA, VERSION};
-use colored::Colorize;
-use eyre::{Result, bail};
-
-pub(crate) async fn run(settings: &Settings) -> Result<()> {
- if let Some(me) = settings.sync.user_id()? {
- let last_sync = Settings::last_sync().await?;
-
- println!("Atuin v{VERSION} - Build rev {SHA}\n");
-
- println!("{}", "[Local]".green());
- println!("Sync frequency: {}", settings.sync.frequency);
- println!("Last sync: {}", last_sync.to_offset(settings.timezone.0));
- println!("Auto sync: {}", settings.sync.auto);
-
- println!("{}", "[Remote]".green());
- println!("Address: {}", settings.sync.address);
- println!("User id: {me}");
- } else {
- bail!("You are not logged in to a sync server - cannot show sync status");
- }
-
- Ok(())
-}