MCPcopy Index your code
hub / github.com/AmrDeveloper/FileQL / fileql_std_signatures

Function fileql_std_signatures

src/functions.rs:21–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21pub fn fileql_std_signatures() -> HashMap<&'static str, Signature> {
22 let mut map: HashMap<&'static str, Signature> = standard_function_signatures().to_owned();
23 map.insert(
24 "files_count",
25 Signature {
26 parameters: vec![Box::new(TextType)],
27 return_type: Box::new(IntType),
28 },
29 );
30 map
31}
32
33fn files_count(values: &[Box<dyn Value>]) -> Box<dyn Value> {
34 let path = values[0].as_text().unwrap();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected