feat: add default_options method to all meta plugins

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-19 13:36:59 -03:00
parent c7a0e285e0
commit cd6033ad3b
6 changed files with 74 additions and 0 deletions

View File

@@ -66,6 +66,10 @@ impl MetaPlugin for CwdMetaPlugin {
fn default_outputs(&self) -> Vec<String> {
vec!["cwd".to_string()]
}
fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> {
std::collections::HashMap::new()
}
}
#[derive(Debug, Clone, Default)]
@@ -121,6 +125,10 @@ impl MetaPlugin for UidMetaPlugin {
fn default_outputs(&self) -> Vec<String> {
vec!["uid".to_string()]
}
fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> {
std::collections::HashMap::new()
}
}
#[derive(Debug, Clone, Default)]
@@ -179,6 +187,10 @@ impl MetaPlugin for UserMetaPlugin {
fn default_outputs(&self) -> Vec<String> {
vec!["user".to_string()]
}
fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> {
std::collections::HashMap::new()
}
}
#[derive(Debug, Clone, Default)]
@@ -234,6 +246,10 @@ impl MetaPlugin for GidMetaPlugin {
fn default_outputs(&self) -> Vec<String> {
vec!["gid".to_string()]
}
fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> {
std::collections::HashMap::new()
}
}
#[derive(Debug, Clone, Default)]
@@ -292,6 +308,10 @@ impl MetaPlugin for GroupMetaPlugin {
fn default_outputs(&self) -> Vec<String> {
vec!["group".to_string()]
}
fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> {
std::collections::HashMap::new()
}
}
#[derive(Debug, Clone, Default)]
@@ -350,6 +370,10 @@ impl MetaPlugin for ShellMetaPlugin {
fn default_outputs(&self) -> Vec<String> {
vec!["shell".to_string()]
}
fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> {
std::collections::HashMap::new()
}
}
#[derive(Debug, Clone, Default)]
@@ -408,6 +432,10 @@ impl MetaPlugin for ShellPidMetaPlugin {
fn default_outputs(&self) -> Vec<String> {
vec!["shell_pid".to_string()]
}
fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> {
std::collections::HashMap::new()
}
}
#[derive(Debug, Clone, Default)]
@@ -463,6 +491,10 @@ impl MetaPlugin for KeepPidMetaPlugin {
fn default_outputs(&self) -> Vec<String> {
vec!["keep_pid".to_string()]
}
fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> {
std::collections::HashMap::new()
}
}
#[derive(Debug, Clone, Default)]
@@ -521,6 +553,10 @@ impl MetaPlugin for HostnameMetaPlugin {
fn default_outputs(&self) -> Vec<String> {
vec!["hostname".to_string()]
}
fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> {
std::collections::HashMap::new()
}
}
#[derive(Debug, Clone, Default)]
@@ -597,4 +633,8 @@ impl MetaPlugin for FullHostnameMetaPlugin {
fn default_outputs(&self) -> Vec<String> {
vec!["full_hostname".to_string()]
}
fn default_options(&self) -> std::collections::HashMap<String, serde_yaml::Value> {
std::collections::HashMap::new()
}
}