From 0bba75241d59c64375cfece494eb9dcdbaa664fc Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 7 Feb 2025 16:19:20 +0100 Subject: update client --- tool/src/cli.rs | 3 +++ tool/src/main.rs | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'tool/src') diff --git a/tool/src/cli.rs b/tool/src/cli.rs index b51b135..a01c9dd 100644 --- a/tool/src/cli.rs +++ b/tool/src/cli.rs @@ -34,6 +34,9 @@ pub enum Action { /// Disable TLS. Dont use this. #[arg(long)] no_tls: bool, + /// Perform full import + #[arg(long)] + no_incremental: bool, }, } diff --git a/tool/src/main.rs b/tool/src/main.rs index 0a0e84e..9ce7cf1 100644 --- a/tool/src/main.rs +++ b/tool/src/main.rs @@ -30,7 +30,11 @@ fn main() -> anyhow::Result<()> { .unwrap() .block_on(add(a)), a @ Action::Migrate { .. } => migrate(a), - Action::Reimport { hostname, no_tls } => tokio::runtime::Builder::new_multi_thread() + Action::Reimport { + hostname, + no_tls, + no_incremental, + } => tokio::runtime::Builder::new_multi_thread() .enable_all() .build() .unwrap() @@ -52,7 +56,7 @@ fn main() -> anyhow::Result<()> { }) .await?; - session.reimport().await?; + session.reimport(!no_incremental).await?; Ok(()) }), } -- cgit v1.2.3-70-g09d2