MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / format_compact_path_list

Function format_compact_path_list

src/path_tree.rs:28–38  ·  view source on GitHub ↗
(
    paths: impl IntoIterator<Item = &'a str>,
    bullet_prefix: &str,
    tree_prefix: &str,
)

Source from the content-addressed store, hash-verified

26}
27
28pub(crate) fn format_compact_path_list<'a>(
29 paths: impl IntoIterator<Item = &'a str>,
30 bullet_prefix: &str,
31 tree_prefix: &str,
32) -> String {
33 format_compact_annotated_path_list(
34 paths.into_iter().map(|path| (path, "")),
35 bullet_prefix,
36 tree_prefix,
37 )
38}
39
40pub(crate) fn format_compact_annotated_path_list<'a, S>(
41 paths: impl IntoIterator<Item = (&'a str, S)>,

Calls 1