querv/querv.py
def main():
    """Main entry point for the querv CLI.
    """
    args = docopt(__doc__, version=version("querv"))
    # print(args)

    prop_dict = {
        "subnets": "SubnetId",
        "images": "ImageId",
        "keys": "KeyName",
        "types": "InstanceType",
        "VPCs": "VpcId",
    }
    query_input = get_option("property", args)
    query = prop_dict[query_input]
    ident = get_option("id", args)

    if args["save"]:
        save_snapshot(args)
        sys.exit(0)

    data = get_data(args)
    summary_dict, summary_list = get_summary(data, ident, query)

    print(pivot(summary_dict, summary_list))
Main entry point for the querv CLI.
    
Main entry point for the querv CLI.
Main entry point for the querv CLI .
def main():
    args = docopt(__doc__, version=version("querv"))
    prop_dict = {
        "subnets": "SubnetId",
        "images": "ImageId",
        "keys": "KeyName",
        "types": "InstanceType",
        "VPCs": "VpcId",
    }
    query_input = get_option("property", args)
    query = prop_dict[query_input]
    ident = get_option("id", args)
    if args["save"]:
        save_snapshot(args)
        sys.exit(0)
    data = get_data(args)
    summary_dict, summary_list = get_summary(data, ident, query)
    print(pivot(summary_dict, summary_list))
def main ( ) : args = docopt ( __doc__ , version = version ( "querv" ) ) prop_dict = { "subnets" : "SubnetId" , "images" : "ImageId" , "keys" : "KeyName" , "types" : "InstanceType" , "VPCs" : "VpcId" , } query_input = get_option ( "property" , args ) query = prop_dict [ query_input ] ident = get_option ( "id" , args ) if args [ "save" ] : save_snapshot ( args ) sys . exit ( 0 ) data = get_data ( args ) summary_dict , summary_list = get_summary ( data , ident , query ) print ( pivot ( summary_dict , summary_list ) )
Main entry point for the querv CLI.
Main entry point for the querv CLI .
"""Main entry point for the querv CLI.
    """ # print(args)