"""Console entry for keka-menubar; imports rumps before loading the menubar app."""

import sys


def main():
    try:
        import rumps  # noqa: F401
    except ImportError:
        print(
            "keka-menubar needs optional dependencies. On macOS install with:\n"
            "  pip install keka-log[menubar]",
            file=sys.stderr,
        )
        sys.exit(1)
    from keka_log.keka_menubar import main as run

    run()
