prism/cli.py
def list(ctx, name):
    """List all tables of type API"""

    # get the initialized prism class
    p = ctx.obj["p"]

    # list the tables
    status = p.list_table(table_name=name)

    # print message
    if id is None:
        click.echo("There are {} API tables".format(status["total"]))
        click.echo(json.dumps(status["data"], indent=2, sort_keys=True))
    else:
        click.echo(json.dumps(status, indent=2, sort_keys=True))
List all tables of type API
List all tables of type API
List all tables of type API
def list(ctx, name):
    p = ctx.obj["p"]
    status = p.list_table(table_name=name)
    if id is None:
        click.echo("There are {} API tables".format(status["total"]))
        click.echo(json.dumps(status["data"], indent=2, sort_keys=True))
    else:
        click.echo(json.dumps(status, indent=2, sort_keys=True))
def list ( ctx , name ) : p = ctx . obj [ "p" ] status = p . list_table ( table_name = name ) if id is None : click . echo ( "There are {} API tables" . format ( status [ "total" ] ) ) click . echo ( json . dumps ( status [ "data" ] , indent = 2 , sort_keys = True ) ) else : click . echo ( json . dumps ( status , indent = 2 , sort_keys = True ) )
List all tables of type API
List all tables of type API
"""List all tables of type API""" # get the initialized prism class # list the tables # print message
ctx
name