#! /usr/bin/env python
"""
    policy_sentry is a tool for generating AWS IAM policies based on yaml files.
"""

import click
from policy_sentry import command


@click.group()
def policy_sentry():
    """
    policy_sentry is a tool for generating AWS IAM policies based on yaml files.
    """


policy_sentry.add_command(command.analyze.analyze)
policy_sentry.add_command(command.initialize.initialize)
policy_sentry.add_command(command.download_policies.download_policies)
policy_sentry.add_command(command.write_policy.write_policy)
policy_sentry.add_command(command.write_policy_dir.write_policy_dir)
policy_sentry.add_command(command.create_template.create_template)
policy_sentry.add_command(command.query.query)


if __name__ == '__main__':
    policy_sentry()
