diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-07 16:19:20 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-07 16:19:20 +0100 |
commit | 0bba75241d59c64375cfece494eb9dcdbaa664fc (patch) | |
tree | b1fc2a3dc6755fcc91ed78026a1617b7416cddd9 /tool | |
parent | 314bca18a43e22368a87fcad53d91190fe101b60 (diff) | |
download | jellything-0bba75241d59c64375cfece494eb9dcdbaa664fc.tar jellything-0bba75241d59c64375cfece494eb9dcdbaa664fc.tar.bz2 jellything-0bba75241d59c64375cfece494eb9dcdbaa664fc.tar.zst |
update client
Diffstat (limited to 'tool')
-rw-r--r-- | tool/src/cli.rs | 3 | ||||
-rw-r--r-- | tool/src/main.rs | 8 |
2 files changed, 9 insertions, 2 deletions
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(()) }), } |