MCPcopy Create free account
hub / github.com/LaunchPlatform/beanhub-cli / file_tree_iterator

Function file_tree_iterator

beanhub_cli/format.py:44–51  ·  view source on GitHub ↗
(
    parser: Lark, filenames: list[pathlib.Path]
)

Source from the content-addressed store, hash-verified

42
43
44def file_tree_iterator(
45 parser: Lark, filenames: list[pathlib.Path]
46) -> typing.Generator[tuple[pathlib.Path, Tree], None, None]:
47 for filename in filenames:
48 with open(filename, "rt") as input_file:
49 input_content = input_file.read()
50 tree = parser.parse(input_content)
51 yield filename, tree
52
53
54def walk_tree(

Callers 1

format_beancountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected