From d57f549855caf8ab90b5ea0ae7cc9445f3abedfc Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Thu, 21 Apr 2022 10:12:56 +0100 Subject: refactor commands for better separation (#313) * refactor commands for better separation * fmt --- src/command/sync.rs | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 src/command/sync.rs (limited to 'src/command/sync.rs') diff --git a/src/command/sync.rs b/src/command/sync.rs deleted file mode 100644 index f8bfd5e2..00000000 --- a/src/command/sync.rs +++ /dev/null @@ -1,19 +0,0 @@ -use eyre::Result; - -use atuin_client::database::Database; -use atuin_client::settings::Settings; -use atuin_client::sync; - -pub async fn run( - settings: &Settings, - force: bool, - db: &mut (impl Database + Send + Sync), -) -> Result<()> { - sync::sync(settings, force, db).await?; - println!( - "Sync complete! {} items in database, force: {}", - db.history_count().await?, - force - ); - Ok(()) -} -- cgit v1.3.1