import click

from .commands.config_commands import config
from .commands.adb_commands import (adb_command, list_devices, kill, kill_all,
                                    clear, input_text, input_keyevent,
                                    screencap, date, device_info, reboot)


@click.group()
@click.version_option(package_name="adbons")
@click.option('-v', '--verbose', is_flag=True, help='Enables verbose mode')
@click.pass_context
def cli(ctx, verbose):
    """A wrapper for the adb tool. It's just adb on steroids."""
    ctx.invoked_subcommand


# Config commands
cli.add_command(config)

# ADB commands
cli.add_command(adb_command)
cli.add_command(list_devices)
cli.add_command(kill)
cli.add_command(kill_all)
cli.add_command(clear)
cli.add_command(input_text)
cli.add_command(input_keyevent)
cli.add_command(screencap)
cli.add_command(date)
cli.add_command(device_info)
cli.add_command(reboot)
