refactor: reorganize meta plugins table to show Meta Name first and remove Type column

Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-07-29 13:02:33 -03:00
parent 471fc1b98d
commit ca8629a3ac

View File

@@ -122,12 +122,11 @@ fn build_meta_plugin_table(enabled_meta_plugins: &Vec<MetaPluginType>) -> Table
} }
meta_plugin_table.set_titles(row!( meta_plugin_table.set_titles(row!(
b->"Type", b->"Meta Name",
b->"Found", b->"Found",
b->"Enabled", b->"Enabled",
b->"Binary", b->"Binary",
b->"Args", b->"Args"));
b->"Meta Name"));
for meta_plugin_type in MetaPluginType::iter() { for meta_plugin_type in MetaPluginType::iter() {
let mut meta_plugin = meta_plugin::get_meta_plugin(meta_plugin_type.clone()); let mut meta_plugin = meta_plugin::get_meta_plugin(meta_plugin_type.clone());
@@ -159,7 +158,7 @@ fn build_meta_plugin_table(enabled_meta_plugins: &Vec<MetaPluginType>) -> Table
}; };
meta_plugin_table.add_row(Row::new(vec![ meta_plugin_table.add_row(Row::new(vec![
Cell::new(&meta_plugin_type.to_string()), Cell::new(&meta_plugin.meta_name()),
match is_supported { match is_supported {
true => Cell::new("Yes").with_style(Attr::ForegroundColor(color::GREEN)), true => Cell::new("Yes").with_style(Attr::ForegroundColor(color::GREEN)),
false => Cell::new("No").with_style(Attr::ForegroundColor(color::RED)), false => Cell::new("No").with_style(Attr::ForegroundColor(color::RED)),
@@ -173,7 +172,6 @@ fn build_meta_plugin_table(enabled_meta_plugins: &Vec<MetaPluginType>) -> Table
_ => Cell::new(&binary_display), _ => Cell::new(&binary_display),
}, },
Cell::new(&args_display), Cell::new(&args_display),
Cell::new(&meta_plugin.meta_name()),
])); ]));
} }