INNER CODE UNIT · Python
main
overhangio/tutor · tutor/commands/cli.py:21
def main() -> None:
try:
# Everyone on board
# Note that this action should not be triggered in the module scope, because it
# makes it difficult for tests to rollback changes.
hooks.Actions.CORE_READY.do()
cli()
except KeyboardInterrupt:
pass
except exceptions.TutorError as e:
fmt.echo_error(f"Error: {e.args[0]}")
sys.exit(1)
class TutorCli(click.Group):
"""
Dynamically load subcommands at runtime.