Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

passing cli flag

matthew-heartful3090ae562e43
diff --git a/screenpipe-server/src/bin/screenpipe-server.rs b/screenpipe-server/src/bin/screenpipe-server.rs
index ac4798033..e64cdb091 100644
--- a/screenpipe-server/src/bin/screenpipe-server.rs
+++ b/screenpipe-server/src/bin/screenpipe-server.rs
@@ -83,6 +83,10 @@ struct Cli {
/// Save text files
#[arg(long, default_value_t = false)]
save_text_files: bool,
+
+ /// Disable cloud audio processing
+ #[arg(long, default_value_t = false)]
+ cloud_audio_off: bool,
}
fn get_base_dir(custom_path: Option<String>) -> anyhow::Result<PathBuf> {
@@ -292,6 +296,7 @@ async fn main() -> anyhow::Result<()> {
vision_control,
audio_devices_control,
cli.save_text_files,
+ !cli.cloud_audio_off, // Pass the cloud_audio flag
)
.await;
@@ -344,4 +349,4 @@ async fn main() -> anyhow::Result<()> {
loop {
tokio::time::sleep(Duration::from_secs(1)).await;
}
-}
+}
\ No newline at end of file