refactor: remove KEEP_META_* environment variable parsing
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -44,17 +44,8 @@ pub fn mode_list(
|
||||
.exit();
|
||||
}
|
||||
|
||||
let mut meta: std::collections::HashMap<String, String> = std::collections::HashMap::new();
|
||||
// Collect metadata from environment variables
|
||||
for (key, value) in std::env::vars() {
|
||||
if key.starts_with("KEEP_META_") && key != "KEEP_META_PLUGINS" {
|
||||
let meta_name = key.strip_prefix("KEEP_META_").unwrap();
|
||||
meta.insert(meta_name.to_string(), value);
|
||||
}
|
||||
}
|
||||
|
||||
let item_service = ItemService::new(data_path.clone());
|
||||
let items_with_meta = item_service.list_items(conn, tags, &meta)?;
|
||||
let items_with_meta = item_service.list_items(conn, tags, &std::collections::HashMap::new())?;
|
||||
|
||||
let output_format = crate::modes::common::settings_output_format(settings);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user