fix: remove unused config parameter in mode functions
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -12,7 +12,6 @@ use is_terminal::IsTerminal;
|
||||
pub fn mode_get(
|
||||
cmd: &mut Command,
|
||||
settings: &config::Settings,
|
||||
_config: &config::Settings,
|
||||
ids: &mut Vec<i64>,
|
||||
tags: &mut Vec<String>,
|
||||
conn: &mut rusqlite::Connection,
|
||||
@@ -25,9 +24,12 @@ pub fn mode_get(
|
||||
}
|
||||
|
||||
let mut meta: std::collections::HashMap<String, String> = std::collections::HashMap::new();
|
||||
for item in settings.meta.iter() {
|
||||
let item = item.clone();
|
||||
meta.insert(item.key, item.value);
|
||||
// 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_maybe = match tags.is_empty() && meta.is_empty() {
|
||||
|
||||
Reference in New Issue
Block a user