fix: initialize final_options in meta plugin constructors
Co-authored-by: aider (openai/andrew/openrouter/anthropic/claude-sonnet-4) <aider@aider.chat>
This commit is contained in:
@@ -19,6 +19,14 @@ impl DigestSha256MetaPlugin {
|
|||||||
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
) -> DigestSha256MetaPlugin {
|
) -> DigestSha256MetaPlugin {
|
||||||
|
// Start with default options
|
||||||
|
let mut final_options = std::collections::HashMap::new();
|
||||||
|
if let Some(opts) = _options {
|
||||||
|
for (key, value) in opts {
|
||||||
|
final_options.insert(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Start with default outputs
|
// Start with default outputs
|
||||||
let mut final_outputs = std::collections::HashMap::new();
|
let mut final_outputs = std::collections::HashMap::new();
|
||||||
let default_outputs = Self::default().default_outputs();
|
let default_outputs = Self::default().default_outputs();
|
||||||
@@ -114,6 +122,14 @@ impl ReadTimeMetaPlugin {
|
|||||||
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
) -> ReadTimeMetaPlugin {
|
) -> ReadTimeMetaPlugin {
|
||||||
|
// Start with default options
|
||||||
|
let mut final_options = std::collections::HashMap::new();
|
||||||
|
if let Some(opts) = _options {
|
||||||
|
for (key, value) in opts {
|
||||||
|
final_options.insert(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Start with default outputs
|
// Start with default outputs
|
||||||
let mut final_outputs = std::collections::HashMap::new();
|
let mut final_outputs = std::collections::HashMap::new();
|
||||||
let default_outputs = Self::default().default_outputs();
|
let default_outputs = Self::default().default_outputs();
|
||||||
@@ -197,6 +213,14 @@ impl ReadRateMetaPlugin {
|
|||||||
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
) -> ReadRateMetaPlugin {
|
) -> ReadRateMetaPlugin {
|
||||||
|
// Start with default options
|
||||||
|
let mut final_options = std::collections::HashMap::new();
|
||||||
|
if let Some(opts) = _options {
|
||||||
|
for (key, value) in opts {
|
||||||
|
final_options.insert(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Start with default outputs
|
// Start with default outputs
|
||||||
let mut final_outputs = std::collections::HashMap::new();
|
let mut final_outputs = std::collections::HashMap::new();
|
||||||
let default_outputs = Self::default().default_outputs();
|
let default_outputs = Self::default().default_outputs();
|
||||||
|
|||||||
@@ -22,6 +22,14 @@ impl CwdMetaPlugin {
|
|||||||
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
) -> CwdMetaPlugin {
|
) -> CwdMetaPlugin {
|
||||||
|
// Start with default options
|
||||||
|
let mut final_options = std::collections::HashMap::new();
|
||||||
|
if let Some(opts) = _options {
|
||||||
|
for (key, value) in opts {
|
||||||
|
final_options.insert(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Start with default outputs
|
// Start with default outputs
|
||||||
let mut final_outputs = std::collections::HashMap::new();
|
let mut final_outputs = std::collections::HashMap::new();
|
||||||
let default_outputs = Self::default().default_outputs();
|
let default_outputs = Self::default().default_outputs();
|
||||||
@@ -114,6 +122,14 @@ impl UidMetaPlugin {
|
|||||||
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
) -> UidMetaPlugin {
|
) -> UidMetaPlugin {
|
||||||
|
// Start with default options
|
||||||
|
let mut final_options = std::collections::HashMap::new();
|
||||||
|
if let Some(opts) = _options {
|
||||||
|
for (key, value) in opts {
|
||||||
|
final_options.insert(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Start with default outputs
|
// Start with default outputs
|
||||||
let mut final_outputs = std::collections::HashMap::new();
|
let mut final_outputs = std::collections::HashMap::new();
|
||||||
let default_outputs = Self::default().default_outputs();
|
let default_outputs = Self::default().default_outputs();
|
||||||
@@ -202,6 +218,14 @@ impl UserMetaPlugin {
|
|||||||
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
) -> UserMetaPlugin {
|
) -> UserMetaPlugin {
|
||||||
|
// Start with default options
|
||||||
|
let mut final_options = std::collections::HashMap::new();
|
||||||
|
if let Some(opts) = _options {
|
||||||
|
for (key, value) in opts {
|
||||||
|
final_options.insert(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Start with default outputs
|
// Start with default outputs
|
||||||
let mut final_outputs = std::collections::HashMap::new();
|
let mut final_outputs = std::collections::HashMap::new();
|
||||||
let default_outputs = Self::default().default_outputs();
|
let default_outputs = Self::default().default_outputs();
|
||||||
@@ -293,6 +317,14 @@ impl GidMetaPlugin {
|
|||||||
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
) -> GidMetaPlugin {
|
) -> GidMetaPlugin {
|
||||||
|
// Start with default options
|
||||||
|
let mut final_options = std::collections::HashMap::new();
|
||||||
|
if let Some(opts) = _options {
|
||||||
|
for (key, value) in opts {
|
||||||
|
final_options.insert(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Start with default outputs
|
// Start with default outputs
|
||||||
let mut final_outputs = std::collections::HashMap::new();
|
let mut final_outputs = std::collections::HashMap::new();
|
||||||
let default_outputs = Self::default().default_outputs();
|
let default_outputs = Self::default().default_outputs();
|
||||||
@@ -381,6 +413,14 @@ impl GroupMetaPlugin {
|
|||||||
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
) -> GroupMetaPlugin {
|
) -> GroupMetaPlugin {
|
||||||
|
// Start with default options
|
||||||
|
let mut final_options = std::collections::HashMap::new();
|
||||||
|
if let Some(opts) = _options {
|
||||||
|
for (key, value) in opts {
|
||||||
|
final_options.insert(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Start with default outputs
|
// Start with default outputs
|
||||||
let mut final_outputs = std::collections::HashMap::new();
|
let mut final_outputs = std::collections::HashMap::new();
|
||||||
let default_outputs = Self::default().default_outputs();
|
let default_outputs = Self::default().default_outputs();
|
||||||
@@ -472,6 +512,14 @@ impl ShellMetaPlugin {
|
|||||||
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
) -> ShellMetaPlugin {
|
) -> ShellMetaPlugin {
|
||||||
|
// Start with default options
|
||||||
|
let mut final_options = std::collections::HashMap::new();
|
||||||
|
if let Some(opts) = _options {
|
||||||
|
for (key, value) in opts {
|
||||||
|
final_options.insert(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Start with default outputs
|
// Start with default outputs
|
||||||
let mut final_outputs = std::collections::HashMap::new();
|
let mut final_outputs = std::collections::HashMap::new();
|
||||||
let default_outputs = Self::default().default_outputs();
|
let default_outputs = Self::default().default_outputs();
|
||||||
@@ -563,6 +611,14 @@ impl ShellPidMetaPlugin {
|
|||||||
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
) -> ShellPidMetaPlugin {
|
) -> ShellPidMetaPlugin {
|
||||||
|
// Start with default options
|
||||||
|
let mut final_options = std::collections::HashMap::new();
|
||||||
|
if let Some(opts) = _options {
|
||||||
|
for (key, value) in opts {
|
||||||
|
final_options.insert(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Start with default outputs
|
// Start with default outputs
|
||||||
let mut final_outputs = std::collections::HashMap::new();
|
let mut final_outputs = std::collections::HashMap::new();
|
||||||
let default_outputs = Self::default().default_outputs();
|
let default_outputs = Self::default().default_outputs();
|
||||||
@@ -654,6 +710,14 @@ impl KeepPidMetaPlugin {
|
|||||||
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
) -> KeepPidMetaPlugin {
|
) -> KeepPidMetaPlugin {
|
||||||
|
// Start with default options
|
||||||
|
let mut final_options = std::collections::HashMap::new();
|
||||||
|
if let Some(opts) = _options {
|
||||||
|
for (key, value) in opts {
|
||||||
|
final_options.insert(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Start with default outputs
|
// Start with default outputs
|
||||||
let mut final_outputs = std::collections::HashMap::new();
|
let mut final_outputs = std::collections::HashMap::new();
|
||||||
let default_outputs = Self::default().default_outputs();
|
let default_outputs = Self::default().default_outputs();
|
||||||
@@ -742,6 +806,14 @@ impl HostnameMetaPlugin {
|
|||||||
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
) -> HostnameMetaPlugin {
|
) -> HostnameMetaPlugin {
|
||||||
|
// Start with default options
|
||||||
|
let mut final_options = std::collections::HashMap::new();
|
||||||
|
if let Some(opts) = _options {
|
||||||
|
for (key, value) in opts {
|
||||||
|
final_options.insert(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Start with default outputs
|
// Start with default outputs
|
||||||
let mut final_outputs = std::collections::HashMap::new();
|
let mut final_outputs = std::collections::HashMap::new();
|
||||||
let default_outputs = Self::default().default_outputs();
|
let default_outputs = Self::default().default_outputs();
|
||||||
@@ -833,6 +905,14 @@ impl FullHostnameMetaPlugin {
|
|||||||
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
_options: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
outputs: Option<std::collections::HashMap<String, serde_yaml::Value>>,
|
||||||
) -> FullHostnameMetaPlugin {
|
) -> FullHostnameMetaPlugin {
|
||||||
|
// Start with default options
|
||||||
|
let mut final_options = std::collections::HashMap::new();
|
||||||
|
if let Some(opts) = _options {
|
||||||
|
for (key, value) in opts {
|
||||||
|
final_options.insert(key, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Start with default outputs
|
// Start with default outputs
|
||||||
let mut final_outputs = std::collections::HashMap::new();
|
let mut final_outputs = std::collections::HashMap::new();
|
||||||
let default_outputs = Self::default().default_outputs();
|
let default_outputs = Self::default().default_outputs();
|
||||||
|
|||||||
Reference in New Issue
Block a user