

@cli_app.command('list-users')
@click.option('--app', default='app', help='Your application init directory (package)')
@click.option('--appbuilder', default='appbuilder', help='your AppBuilder object')
def list_users(app, appbuilder):
    '\n        List all users on the database \n    '
    _appbuilder = import_application(app, appbuilder)
    echo_header('List of users')
    for user in _appbuilder.sm.get_all_users():
        click.echo('username:{0} | email:{1} | role:{2}'.format(user.username, user.email, user.roles))

dataset/ETHPy150Open dpgaspar/Flask-AppBuilder/flask_appbuilder/console.py list_users/original