refactor: remove default column from meta plugin status table and simplify default logic
Co-authored-by: aider (openai/andrew.openrouter.qwen.qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -124,17 +124,13 @@ fn build_meta_plugin_table() -> Table {
|
||||
meta_plugin_table.set_titles(row!(
|
||||
b->"Type",
|
||||
b->"Found",
|
||||
b->"Default",
|
||||
b->"Binary",
|
||||
b->"Args",
|
||||
b->"Meta Name"));
|
||||
|
||||
let default_type = meta_plugin::default_meta_plugin_type();
|
||||
|
||||
for meta_plugin_type in MetaPluginType::iter() {
|
||||
let mut meta_plugin = meta_plugin::get_meta_plugin(meta_plugin_type.clone());
|
||||
let is_supported = meta_plugin.is_supported();
|
||||
let is_default = meta_plugin_type == default_type;
|
||||
|
||||
// Get program info for display purposes
|
||||
let meta_plugin_program: Option<MetaPluginProgram> = META_PLUGIN_PROGRAMS[meta_plugin_type.clone()].clone();
|
||||
@@ -166,10 +162,6 @@ fn build_meta_plugin_table() -> Table {
|
||||
true => Cell::new("Yes").with_style(Attr::ForegroundColor(color::GREEN)),
|
||||
false => Cell::new("No").with_style(Attr::ForegroundColor(color::RED)),
|
||||
},
|
||||
match is_default {
|
||||
true => Cell::new("Yes").with_style(Attr::ForegroundColor(color::GREEN)),
|
||||
false => Cell::new("No"),
|
||||
},
|
||||
Cell::new(&binary_display),
|
||||
Cell::new(&args_display),
|
||||
Cell::new(&meta_plugin.meta_name()),
|
||||
|
||||
Reference in New Issue
Block a user