feat: update compression status to show enabled state
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -13,6 +13,7 @@ use prettytable::format::consts::FORMAT_NO_BORDER_LINE_SEPARATOR;
|
||||
|
||||
use crate::meta_plugin::MetaPluginType;
|
||||
use crate::common::status::{generate_status_info, PathInfo, CompressionInfo, MetaPluginInfo};
|
||||
use crate::compression_engine::CompressionType;
|
||||
|
||||
fn build_path_table(path_info: &PathInfo) -> Table {
|
||||
let mut path_table = Table::new();
|
||||
@@ -52,7 +53,7 @@ fn build_compression_table(compression_info: &Vec<CompressionInfo>) -> Table {
|
||||
compression_table.set_titles(row!(
|
||||
b->"Type",
|
||||
b->"Found",
|
||||
b->"Default",
|
||||
b->"Enabled",
|
||||
b->"Binary",
|
||||
b->"Compress",
|
||||
b->"Decompress"));
|
||||
@@ -142,8 +143,15 @@ pub fn mode_status(
|
||||
}
|
||||
}
|
||||
|
||||
// Determine which compression type would be enabled for a save operation
|
||||
let enabled_compression_type = if let Some(compression_name) = &settings.compression {
|
||||
CompressionType::from_str(compression_name).ok()
|
||||
} else {
|
||||
Some(crate::compression_engine::default_compression_type())
|
||||
};
|
||||
|
||||
let output_format = crate::modes::common::settings_output_format(settings);
|
||||
let status_info = generate_status_info(data_path, db_path, &meta_plugin_types);
|
||||
let status_info = generate_status_info(data_path, db_path, &meta_plugin_types, enabled_compression_type);
|
||||
|
||||
match output_format {
|
||||
OutputFormat::Table => {
|
||||
|
||||
Reference in New Issue
Block a user