MCPcopy Create free account
hub / github.com/FastLED/FastLED / main

Function main

ci/collect_sources_by_library.py:51–64  ·  view source on GitHub ↗

Main entry point for library-organized source collection.

()

Source from the content-addressed store, hash-verified

49
50
51def main() -> None:
52 """Main entry point for library-organized source collection."""
53 if len(sys.argv) != 1:
54 print("Usage: collect_sources_by_library.py", file=sys.stderr)
55 print("Outputs sources organized by library", file=sys.stderr)
56 sys.exit(1)
57
58 # Discover sources for each library
59 for library_name, directories in SOURCE_LIBRARIES.items():
60 for dir_path, recursive in directories:
61 sources = discover_sources(dir_path, "*.cpp", recursive)
62 for source in sources:
63 # Output in format: LIBRARY:<library_name>:<file_path>
64 print(f"LIBRARY:{library_name}:{source}")
65
66
67if __name__ == "__main__":

Callers 1

Calls 3

discover_sourcesFunction · 0.90
itemsMethod · 0.80
printFunction · 0.50

Tested by

no test coverage detected