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 save-text-file-flag throughout the project

matthew-heartful2463d33b0a40
diff --git a/screenpipe-server/src/bin/screenpipe-server.rs b/screenpipe-server/src/bin/screenpipe-server.rs
index b96cbb019..5f78142a2 100644
--- a/screenpipe-server/src/bin/screenpipe-server.rs
+++ b/screenpipe-server/src/bin/screenpipe-server.rs
@@ -84,6 +84,10 @@ struct Cli {
/// Enable debug logging for screenpipe modules
#[arg(long)]
debug: bool,
+
+ /// Save text files
+ #[arg(long, default_value_t = false)]
+ save_text_files: bool,
}
#[tokio::main]
@@ -106,6 +110,10 @@ async fn main() -> anyhow::Result<()> {
if cli.debug {
builder.filter_module("screenpipe", LevelFilter::Debug);
}
+ // Example usage of the new flag
+ if cli.save_text_files {
+ println!("Text files will be saved.");
+ }
builder.init();
// tokio-console
@@ -270,6 +278,7 @@ async fn main() -> anyhow::Result<()> {
control_rx,
vision_control,
audio_devices_control_receiver,
+ cli.save_text_files,
)
.await
}