MCPcopy Index your code
hub / github.com/dbcli/mycli / main

Function main

mycli/main.py:433–456  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431
432
433def main() -> int | None:
434 try:
435 result = click_entrypoint.main(
436 filtered_sys_argv(), # type: ignore[arg-type]
437 standalone_mode=False, # disable builtin exception handling
438 prog_name='mycli',
439 )
440 except click.Abort:
441 print('Aborted!', file=sys.stderr)
442 sys.exit(1)
443 except BrokenPipeError:
444 sys.exit(1)
445 except click.ClickException as e:
446 e.show()
447 if hasattr(e, 'exit_code'):
448 sys.exit(e.exit_code)
449 else:
450 sys.exit(2)
451 if result is None:
452 return 0
453 elif isinstance(result, int):
454 return result
455 else:
456 return 1
457
458
459if __name__ == "__main__":

Callers 1

main.pyFile · 0.85

Calls 2

filtered_sys_argvFunction · 0.90
exitMethod · 0.80

Tested by

no test coverage detected