If a raw output format is set, dump data and exit

def handle_raw_output(ctx, data):
    """If a raw output format is set, dump data and exit"""
    if ctx.obj['format'] == 'json':
        print(json_dump(data))
        exit(0)
    if ctx.obj['format'] == 'yaml':
        print(yaml_dump(data), end='')
        exit(0)