feat: use process_metadata_outputs for output mapping in command plugin
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -156,11 +156,14 @@ impl MetaPlugin for MetaPluginCommand {
|
|||||||
debug!("META: Program output: {}", result);
|
debug!("META: Program output: {}", result);
|
||||||
self.result = Some(result.clone());
|
self.result = Some(result.clone());
|
||||||
|
|
||||||
// Create metadata to be returned
|
// Use process_metadata_outputs to handle output mapping
|
||||||
metadata.push(crate::meta_plugin::MetaData {
|
if let Some(meta_data) = crate::meta_plugin::process_metadata_outputs(
|
||||||
name: self.meta_name.clone(),
|
&self.meta_name,
|
||||||
value: result,
|
serde_yaml::Value::String(result),
|
||||||
});
|
&self.outputs
|
||||||
|
) {
|
||||||
|
metadata.push(meta_data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
debug!("META: Program failed with status: {:?}", output.status);
|
debug!("META: Program failed with status: {:?}", output.status);
|
||||||
|
|||||||
Reference in New Issue
Block a user