blob: d70b554f87c2b30c46d504c735c22f71e49dbe1a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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)) -> Result<()> {
sync::sync(settings, force, db).await?;
println!(
"Sync complete! {} items in database, force: {}",
db.history_count()?,
force
);
Ok(())
}
|