import click

from dobby.cherrypick import cherrypick
from dobby.aggregate import aggregate
# from dobby.selector import selector
from dobby.samplesheet import samplesheet

settings = dict(help_option_names=['-h', '--help'])


@click.group(options_metavar='', subcommand_metavar='<command>',
             context_settings=settings)
def cli():
    """
    Hi! Dobby is the heroic house-elf that automates SampleSheet generation
    from Google Sheets. And, of course, Dobby is free.
    """
    pass

cli.add_command(cherrypick)
cli.add_command(aggregate)
# cli.add_command(selector)
cli.add_command(samplesheet)

if __name__ == "__main__":
    cli()
