"""Main CLI entry point for Coinjure."""

try:
    from dotenv import load_dotenv

    load_dotenv()
except ImportError:
    pass

import click

from coinjure.cli.engine_commands import engine
from coinjure.cli.hub_commands import hub
from coinjure.cli.market_commands import market


@click.group()
@click.version_option(version='0.0.1')
def cli() -> None:
    """Coinjure - trading agent CLI."""
    pass


cli.add_command(market)
cli.add_command(engine)
cli.add_command(hub)


if __name__ == '__main__':
    cli()
