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:
@@ -122,12 +122,11 @@ fn build_meta_plugin_table(enabled_meta_plugins: &Vec<MetaPluginType>) -> Table
|
||||
}
|
||||
|
||||
meta_plugin_table.set_titles(row!(
|
||||
b->"Type",
|
||||
b->"Meta Name",
|
||||
b->"Found",
|
||||
b->"Enabled",
|
||||
b->"Binary",
|
||||
b->"Args",
|
||||
b->"Meta Name"));
|
||||
b->"Args"));
|
||||
|
||||
for meta_plugin_type in MetaPluginType::iter() {
|
||||
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![
|
||||
Cell::new(&meta_plugin_type.to_string()),
|
||||
Cell::new(&meta_plugin.meta_name()),
|
||||
match is_supported {
|
||||
true => Cell::new("Yes").with_style(Attr::ForegroundColor(color::GREEN)),
|
||||
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(&args_display),
|
||||
Cell::new(&meta_plugin.meta_name()),
|
||||
]));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user