feat: add meta plugin type argument parsing
This commit is contained in:
committed by
Andrew Phillips (aider)
parent
970d69af70
commit
d4d17b93e1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user