MCPcopy Create free account
hub / github.com/Snapchat/Valdi / main

Function main

tools/api_surface/extract_api.py:341–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339
340
341def main():
342 if len(sys.argv) < 2:
343 print(f"Usage: {sys.argv[0]} <open_source_root>", file=sys.stderr)
344 sys.exit(1)
345
346 root = Path(sys.argv[1])
347 api = extract_api(root)
348 print(json.dumps(api, indent=2, sort_keys=True))
349
350
351if __name__ == "__main__":

Callers 1

extract_api.pyFile · 0.70

Calls 4

printFunction · 0.85
extract_apiFunction · 0.85
exitMethod · 0.65
PathClass · 0.50

Tested by

no test coverage detected