#!/usr/bin/env python
# Monocyte - Search and Destroy unwanted AWS Resources relentlessly.
# Copyright 2015 Immobilien Scout GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""
usage:
    monocyte [options]

options:
    --dry-run=bool valid values "True" or "False"
    --handler-names=HANDLER1,HANDLER2,...    aws handlers to use (order might be important)
        Example: cloudformation.Stack,ec2.Instance,ec2.Volume,rds2.Instance,rds2.Snapshot,dynamodb.Table,s3.Bucket
    --allowed-regions-prefixes=PREFIX1,PREFIX2,...  allowed regions start with these prefixes
        Example: eu
    --ignored-regions=REGION1,REGION2,...  regions to be ignored
        Example: cn-north-1,us-gov-west-1
    --ignored-resources=RESOURCE1,RESOURCE2,... resources to be ignored
        Example: cloudformation.cloudtrail-logging
    --cwl-groupname=GROUPNAME  log events to CloudWatchLogs Group
    --config-path=PATH path to config yaml files
"""

import sys
from docopt import docopt

import monocyte.cli as cli


def run():
    arguments = docopt(__doc__)
    sys.exit(cli.main(arguments))


if __name__ == "__main__":
    run()
