def _echo_table(rows):
    if (not rows):
        return
    fieldnames = _fieldnames(rows)
    table = PrettyTable(fieldnames)
    table.align = 'l'
    for row in rows:
        table.add_row([(row[k] or '') for k in fieldnames])
    click.echo(table.get_string())
def _echo_table(rows):
    if (not rows):
        return
    fieldnames = _fieldnames(rows)
    table = PrettyTable(fieldnames)
    table.align = 'l'
    for row in rows:
        table.add_row([(row[k] or ) for k in fieldnames])
    click.echo(table.get_string())