#!/usr/bin/env python
import click

from exhal import Breathe


@click.group()
def cli():
    pass


@click.command(help="Start heartbeat.")
@click.argument("settings", default=None, type=click.Path(exists=True))
def run(settings):
    breathe = Breathe(overrides=settings)
    breathe.run_forever()


if __name__ == "__main__":
    cli.add_command(run)
    cli()
