INNER CODE UNIT · Rust
run_list_command
databricks/click · src/command/mod.rs:82
pub fn run_list_command<T, F>(
matches: ArgMatches,
env: &mut Env,
writer: &mut ClickWriter,
mut cols: Vec<&str>,
request: Request<Vec<u8>>,
col_map: &[(&'static str, &'static str)],
extra_col_map: Option<&[(&'static str, &'static str)]>,
extractors: Option<&HashMap<String, Extractor<T>>>,
get_kobj: F,
) -> Result<(), ClickError>
where
T: ListableResource + Metadata<Ty = ObjectMeta> + for<'de> Deserialize<'de> + Debug,
F: Fn(&T) -> KObj,
{
let regex = match crate::table::get_regex(&matches) {
Ok(r) => r,
Err(s) => {