"""
Entry point for Py-Hub CLI
"""
import sys
from .main import main

def cli_entry():
    """Command-line entry point"""
    try:
        main()
    except KeyboardInterrupt:
        print("\n\nGoodbye!")
        sys.exit(0)
    except Exception as e:
        print(f"Error: {e}")
        sys.exit(1)

if __name__ == "__main__":
    cli_entry()
