From 567ee537a99133fada3e4560518860f6c52708f1 Mon Sep 17 00:00:00 2001 From: Louis Beaumont Date: Fri, 2 Aug 2024 12:49:00 +0200 Subject: [PATCH] fix: cli --- .../src/bin/screenpipe-server.rs | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/screenpipe-server/src/bin/screenpipe-server.rs b/screenpipe-server/src/bin/screenpipe-server.rs index 5247f0121..b7afccede 100644 --- a/screenpipe-server/src/bin/screenpipe-server.rs +++ b/screenpipe-server/src/bin/screenpipe-server.rs @@ -85,11 +85,11 @@ struct Cli { save_text_files: bool, /// Enable cloud audio processing - #[arg(long, default_value_t = true)] + #[arg(long, default_value_t = false)] cloud_audio_on: bool, /// Enable cloud OCR processing - #[arg(long, default_value_t = true)] + #[arg(long, default_value_t = false)] cloud_ocr_on: bool, } @@ -301,7 +301,7 @@ async fn main() -> anyhow::Result<()> { audio_devices_control, cli.save_text_files, cli.cloud_audio_on, // Pass the cloud_audio flag - cli.cloud_ocr_on, // Pass the cloud_ocr flag + cli.cloud_ocr_on, // Pass the cloud_ocr flag ) .await; @@ -350,8 +350,22 @@ async fn main() -> anyhow::Result<()> { "Open source | Runs locally | Developer friendly".bright_green() ); + // Add warning for cloud arguments + if cli.cloud_audio_on || cli.cloud_ocr_on { + eprintln!( + "{}", + "WARNING: You are using cloud now. Make sure to understand the data privacy risks." + .bright_yellow() + ); + } else { + eprintln!( + "{}", + "You are using local processing. All your data stays on your computer.".bright_yellow() + ); + } + // Keep the main thread running loop { tokio::time::sleep(Duration::from_secs(1)).await; } -} \ No newline at end of file +}