aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/sync.rs
diff options
context:
space:
mode:
authorConrad Ludgate <conrad.ludgate@truelayer.com>2022-04-21 10:12:56 +0100
committerGitHub <noreply@github.com>2022-04-21 09:12:56 +0000
commitd57f549855caf8ab90b5ea0ae7cc9445f3abedfc (patch)
tree0818ff405a3b697a0ca981d215ceb4dbb30cd15a /src/command/sync.rs
parentFix SQL cache query (#318) (diff)
downloadatuin-d57f549855caf8ab90b5ea0ae7cc9445f3abedfc.zip
refactor commands for better separation (#313)
* refactor commands for better separation * fmt
Diffstat (limited to 'src/command/sync.rs')
-rw-r--r--src/command/sync.rs19
1 files changed, 0 insertions, 19 deletions
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(())
-}