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:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user