"""H5P repository management CLI.

Usage::

    python -m byteb4rb1e.sphinxcontrib.h5p.utils.pkg.h5porg.repository init --mirror-base-url URL
    python -m byteb4rb1e.sphinxcontrib.h5p.utils.pkg.h5porg.repository mirror [machine_name]
"""

from byteb4rb1e.utils.argparse import CLI
from byteb4rb1e.sphinxcontrib.h5p.utils.pkg.h5porg.repository.mirror import (
    MirrorCommand,
)
from byteb4rb1e.sphinxcontrib.h5p.utils.pkg.h5porg.repository.index import (
    IndexCommand,
)


cli = CLI(
    prog="python -m byteb4rb1e.sphinxcontrib.h5p.utils.pkg.h5porg.repository",
    description="H5P repository management.",
)
cli.bootstrap([MirrorCommand, IndexCommand])
cli.run()
