feat: add separator lines between meta plugins in status table

Co-authored-by: aider (openai/andrew/openrouter/mistralai/mistral-medium-3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-27 19:55:46 -03:00
parent 46cf015572
commit 564d593f04

View File

@@ -280,7 +280,7 @@ fn build_meta_plugin_table(meta_plugin_info: &Vec<MetaPluginInfo>) -> Table {
b->"Options",
b->"Outputs"));
for info in meta_plugin_info {
for (i, info) in meta_plugin_info.iter().enumerate() {
// Get default options for the meta plugin
let meta_plugin_type = match MetaPluginType::from_str(&info.meta_name) {
Ok(plugin_type) => plugin_type,
@@ -323,6 +323,15 @@ fn build_meta_plugin_table(meta_plugin_info: &Vec<MetaPluginInfo>) -> Table {
Cell::new(&options_str),
Cell::new(&outputs_display),
]));
// Add a separator line after each row except the last one
if i < meta_plugin_info.len() - 1 {
meta_plugin_table.add_row(Row::new(vec![
Cell::new("").with_style(Attr::ForegroundColor(color::BRIGHT_BLACK)),
Cell::new("").with_style(Attr::ForegroundColor(color::BRIGHT_BLACK)),
Cell::new("").with_style(Attr::ForegroundColor(color::BRIGHT_BLACK)),
]));
}
}
meta_plugin_table