mirror of
https://github.com/atuinsh/atuin.git
synced 2025-12-23 08:48:11 +00:00
* Begin moving to sqlx for local too * Stupid scanners should just have a nice cup of tea Random internet shit searching for /.env or whatever * Remove diesel and rusqlite fully
19 lines
427 B
Rust
19 lines
427 B
Rust
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(())
|
|
}
|