MCPcopy Create free account
hub / github.com/apache/datafusion / main

Function main

docs/scripts/update_committer_list.py:242–262  ·  view source on GitHub ↗

Main function.

()

Source from the content-addressed store, hash-verified

240
241
242def main():
243 """Main function."""
244 # Default path to governance file
245 script_dir = os.path.dirname(os.path.abspath(__file__))
246 repo_root = os.path.dirname(script_dir)
247 governance_file = os.path.join(repo_root, "source", "contributor-guide", "governance.md")
248
249 if len(sys.argv) > 1:
250 governance_file = sys.argv[1]
251
252 if not os.path.exists(governance_file):
253 print(f"Error: Governance file not found at {governance_file}")
254 sys.exit(1)
255
256 print(f"Updating committer list in {governance_file}")
257
258 if update_governance_file(governance_file):
259 print("Committer list updated successfully")
260 else:
261 print("Failed to update committer list")
262 sys.exit(1)
263
264
265if __name__ == "__main__":

Callers 1

Calls 3

update_governance_fileFunction · 0.85
existsMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…