feat: add meta plugin type argument parsing

This commit is contained in:
Andrew Phillips
2025-05-22 15:44:56 -03:00
committed by Andrew Phillips (aider)
parent 970d69af70
commit d4d17b93e1

View File

@@ -4,6 +4,7 @@ use crate::db::Item;
use crate::db::Meta;
use crate::db::store_meta;
use crate::digest_engine::DigestType;
use crate::meta_plugin::MetaPluginType;
use clap::Command;
use clap::error::ErrorKind;
use humansize::{BINARY, FormatSizeOptions};
@@ -157,3 +158,14 @@ pub fn cmd_args_compression_type(cmd: &mut Command, args: &Args) -> CompressionT
compression_type_opt.unwrap()
}
pub fn cmd_args_meta_plugin_types(cmd: &mut Command, args: &Args) -> Vec<MetaPluginType> {
// TODO: Fix this
let meta_plugin_names = args
.item
.meta_plugins
.clone()
.unwrap_or([]);
// TOOD: Return a list of plugin types by loop over each name and converting it to a plugin type
}