MCPcopy Create free account
hub / github.com/PowerShell/DSC / list

Method list

lib/dsc-lib/src/functions/mod.rs:342–356  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

340
341 #[must_use]
342 pub fn list(&self) -> Vec<FunctionDefinition> {
343 self.functions.iter().map(|(name, function)| {
344 let metadata = function.get_metadata();
345 FunctionDefinition {
346 category: metadata.category.clone(),
347 name: name.clone(),
348 description: metadata.description,
349 min_args: metadata.min_args,
350 max_args: metadata.max_args,
351 accepted_arg_ordered_types: metadata.accepted_arg_ordered_types.clone(),
352 remaining_arg_accepted_types: metadata.remaining_arg_accepted_types.clone(),
353 return_types: metadata.return_types,
354 }
355 }).collect()
356 }
357}
358
359impl Default for FunctionDispatcher {

Callers 2

list_functionsFunction · 0.80
list_dsc_functionsMethod · 0.80

Calls 1

get_metadataMethod · 0.45

Tested by

no test coverage detected