"""
Terrafort
Generate terraform templates for specific resources
"""

import click

from .providers.aws import Aws


@click.group()
@click.option('--commands',
              is_flag=True,
              help="Output import commands instead of a terraform template")
@click.version_option()
@click.pass_context
def cli(ctx, commands=False):
    ctx.obj = {'commands':  commands}


cli.add_command(Aws.aws_db_instance)
cli.add_command(Aws.aws_iam_instance_profile)
cli.add_command(Aws.aws_instance)
cli.add_command(Aws.aws_security_group)

if __name__ == "__main__":
    # pylint: disable=unexpected-keyword-arg,no-value-for-parameter
    cli(obj={})

[((11, 1, 11, 14), 'click.group', 'click.group', ({}, {}), '()', False, 'import click\n'), ((12, 1, 14, 76), 'click.option', 'click.option', (), '', False, 'import click\n'), ((15, 1, 15, 23), 'click.version_option', 'click.version_option', ({}, {}), '()', False, 'import click\n')]