Source code for edri.cli
"""The ``edri`` command line.
The command needs the ``cli`` extra (``pip install "edri[cli]"``). Nothing from
that extra is imported until :func:`main` runs.
"""
from __future__ import annotations
import sys
__all__ = ["main"]
[docs]
def main() -> None:
"""Entry point of the ``edri`` console script."""
try:
from ._app import cli
except ImportError as error:
if error.name != "click":
raise
sys.stderr.write('The edri command needs the cli extra: pip install "edri[cli]"\n')
raise SystemExit(1) from error
cli(prog_name="edri")