feat: Add placeholder for filter plugins table to status output
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -14,6 +14,7 @@ use prettytable::format::consts::{FORMAT_BOX_CHARS, FORMAT_NO_BORDER_LINE_SEPARA
|
|||||||
|
|
||||||
use crate::meta_plugin::{MetaPluginType, get_meta_plugin};
|
use crate::meta_plugin::{MetaPluginType, get_meta_plugin};
|
||||||
use crate::common::status::{MetaPluginInfo, CompressionInfo};
|
use crate::common::status::{MetaPluginInfo, CompressionInfo};
|
||||||
|
use crate::filter_plugin;
|
||||||
use prettytable::color;
|
use prettytable::color;
|
||||||
|
|
||||||
|
|
||||||
@@ -121,6 +122,30 @@ fn build_compression_table(compression_info: &Vec<CompressionInfo>) -> Table {
|
|||||||
compression_table
|
compression_table
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn build_filter_plugin_table() -> Table {
|
||||||
|
let mut filter_plugin_table = Table::new();
|
||||||
|
if std::io::stdout().is_terminal() {
|
||||||
|
filter_plugin_table.set_format(*FORMAT_BOX_CHARS);
|
||||||
|
} else {
|
||||||
|
filter_plugin_table.set_format(*FORMAT_NO_BORDER_LINE_SEPARATOR);
|
||||||
|
}
|
||||||
|
|
||||||
|
filter_plugin_table.set_titles(row!(
|
||||||
|
b->"Plugin Name",
|
||||||
|
b->"Options",
|
||||||
|
b->"Description"));
|
||||||
|
|
||||||
|
// For now, we'll use a placeholder since we don't have access to filter plugin information
|
||||||
|
// In a real implementation, you would query the available filter plugins
|
||||||
|
filter_plugin_table.add_row(Row::new(vec![
|
||||||
|
Cell::new("No filter plugins available"),
|
||||||
|
Cell::new("{}"),
|
||||||
|
Cell::new(""),
|
||||||
|
]));
|
||||||
|
|
||||||
|
filter_plugin_table
|
||||||
|
}
|
||||||
|
|
||||||
pub fn mode_status_plugins(
|
pub fn mode_status_plugins(
|
||||||
cmd: &mut Command,
|
cmd: &mut Command,
|
||||||
settings: &config::Settings,
|
settings: &config::Settings,
|
||||||
@@ -145,9 +170,8 @@ pub fn mode_status_plugins(
|
|||||||
build_compression_table(&status_info.compression).printstd();
|
build_compression_table(&status_info.compression).printstd();
|
||||||
println!();
|
println!();
|
||||||
|
|
||||||
// TODO: Add FILTER PLUGINS section here
|
|
||||||
println!("FILTER PLUGINS:");
|
println!("FILTER PLUGINS:");
|
||||||
println!("No filter plugins available");
|
build_filter_plugin_table().printstd();
|
||||||
println!();
|
println!();
|
||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user