Entry point for the CLI.
()
| 62 | |
| 63 | |
| 64 | def main(): |
| 65 | """Entry point for the CLI.""" |
| 66 | try: |
| 67 | cli(obj={}) |
| 68 | except KeyboardInterrupt: |
| 69 | click.echo("\n\nInterrupted by user", err=True) |
| 70 | sys.exit(130) |
| 71 | except Exception as e: |
| 72 | click.secho(f"\n✗ Unexpected error: {e}", fg="red", err=True) |
| 73 | sys.exit(1) |
| 74 | |
| 75 | |
| 76 | if __name__ == "__main__": |