refactor: remove enabled column and rename meta plugins table
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -241,7 +241,6 @@ fn build_meta_plugin_table(meta_plugin_info: &Vec<MetaPluginInfo>) -> Table {
|
|||||||
meta_plugin_table.set_titles(row!(
|
meta_plugin_table.set_titles(row!(
|
||||||
b->"Meta Name",
|
b->"Meta Name",
|
||||||
b->"Found",
|
b->"Found",
|
||||||
b->"Enabled",
|
|
||||||
b->"Binary",
|
b->"Binary",
|
||||||
b->"Args",
|
b->"Args",
|
||||||
b->"Outputs"));
|
b->"Outputs"));
|
||||||
@@ -261,10 +260,6 @@ fn build_meta_plugin_table(meta_plugin_info: &Vec<MetaPluginInfo>) -> Table {
|
|||||||
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)),
|
||||||
},
|
},
|
||||||
match info.enabled {
|
|
||||||
true => Cell::new("Yes").with_style(Attr::ForegroundColor(color::GREEN)),
|
|
||||||
false => Cell::new("No"),
|
|
||||||
},
|
|
||||||
match info.binary.as_str() {
|
match info.binary.as_str() {
|
||||||
"<INTERNAL>" => Cell::new(&info.binary).with_style(Attr::ForegroundColor(color::BRIGHT_BLACK)),
|
"<INTERNAL>" => Cell::new(&info.binary).with_style(Attr::ForegroundColor(color::BRIGHT_BLACK)),
|
||||||
"<NOT FOUND>" => Cell::new(&info.binary).with_style(Attr::ForegroundColor(color::RED)),
|
"<NOT FOUND>" => Cell::new(&info.binary).with_style(Attr::ForegroundColor(color::RED)),
|
||||||
@@ -319,7 +314,7 @@ pub fn mode_status(
|
|||||||
println!("COMPRESSION:");
|
println!("COMPRESSION:");
|
||||||
build_compression_table(&status_info.compression).printstd();
|
build_compression_table(&status_info.compression).printstd();
|
||||||
println!();
|
println!();
|
||||||
println!("META PLUGINS:");
|
println!("META PLUGINS AVAILABLE:");
|
||||||
build_meta_plugin_table(&status_info.meta_plugins).printstd();
|
build_meta_plugin_table(&status_info.meta_plugins).printstd();
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user