feat: update dependencies and remove binary and command meta plugins
This commit is contained in:
committed by
Andrew Phillips (aider)
parent
40e4fcc74a
commit
52dc8cea32
@@ -2,6 +2,7 @@ use clap::*;
|
||||
use is_terminal::IsTerminal;
|
||||
use std::path::PathBuf;
|
||||
use std::str::FromStr;
|
||||
use log::debug;
|
||||
|
||||
use crate::modes::common::{get_format_box_chars_no_border_line_separator, OutputFormat};
|
||||
use crate::config;
|
||||
@@ -344,12 +345,12 @@ pub fn mode_status(
|
||||
data_path: PathBuf,
|
||||
db_path: PathBuf,
|
||||
) -> Result<(), anyhow::Error> {
|
||||
log::debug!("STATUS: Starting mode_status function");
|
||||
debug!("STATUS: Starting mode_status function");
|
||||
|
||||
// Determine which meta plugins would be enabled for a save operation
|
||||
log::debug!("STATUS: Getting meta plugin types from settings");
|
||||
debug!("STATUS: Getting meta plugin types from settings");
|
||||
let mut meta_plugin_types: Vec<MetaPluginType> = crate::modes::common::settings_meta_plugin_types(_cmd, settings);
|
||||
log::debug!("STATUS: Got {} meta plugin types", meta_plugin_types.len());
|
||||
debug!("STATUS: Got {} meta plugin types", meta_plugin_types.len());
|
||||
|
||||
// Always add the Digest plugin if not present
|
||||
if !meta_plugin_types.contains(&MetaPluginType::Digest) {
|
||||
@@ -364,9 +365,9 @@ pub fn mode_status(
|
||||
};
|
||||
|
||||
let output_format = crate::modes::common::settings_output_format(settings);
|
||||
log::debug!("STATUS: About to call generate_status_info");
|
||||
debug!("STATUS: About to call generate_status_info");
|
||||
let status_info = generate_status_info(data_path, db_path, &meta_plugin_types, enabled_compression_type);
|
||||
log::debug!("STATUS: generate_status_info completed successfully");
|
||||
debug!("STATUS: generate_status_info completed successfully");
|
||||
|
||||
match output_format {
|
||||
OutputFormat::Table => {
|
||||
@@ -377,11 +378,14 @@ pub fn mode_status(
|
||||
println!("PATHS:");
|
||||
build_path_table(&status_info.paths).printstd();
|
||||
println!();
|
||||
|
||||
println!("COMPRESSION:");
|
||||
build_compression_table(&status_info.compression).printstd();
|
||||
println!();
|
||||
|
||||
println!("META PLUGINS AVAILABLE:");
|
||||
build_meta_plugin_table(&status_info.meta_plugins).printstd();
|
||||
println!();
|
||||
|
||||
// Print META PLUGINS CONFIGURED if they exist
|
||||
if let Some(meta_plugins_table) = build_meta_plugins_configured_table(settings) {
|
||||
|
||||
Reference in New Issue
Block a user