MCPcopy Create free account
hub / github.com/tiny-pilot/tinypilot / main

Function main

app/cli/main.py:17–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17def main():
18 if len(sys.argv) < 2:
19 print('Missing required subcommand!', file=sys.stderr)
20 sys.exit(1)
21
22 try:
23 command = cli.registry.COMMANDS[sys.argv[1]]
24 except KeyError:
25 print('No such subcommand!', file=sys.stderr)
26 sys.exit(1)
27
28 command(sys.argv[1:])
29
30
31if __name__ == '__main__':

Callers 1

main.pyFile · 0.70

Calls 1

commandFunction · 0.85

Tested by

no test coverage detected