# Path: cli/admin.py
# def list_admin():
# def toggle_admin(email, state):


import click
import metrics
from cli import admin as _admin
from prettytable import PrettyTable
    from cli import load_to_mongo
    from cli import load_to_mongo
    from cli import load_to_mongo
    from cli import load_to_mongo


@click.group()
def cli():
    """Unshred.it management CLI"""


@cli.group('admin')
def admin():
    """Manages admin users"""
    pass


@admin.command('list')
def admin_list():
    """List admin users"""
    _admin.list_admin()


@admin.command('add')
@click.argument('email')
def admin_add(email):
    """Mark user as admin"""
    _admin.toggle_admin(email, True)


@admin.command('remove')
@click.argument('email')
def admin_remove(email):
    """Unmark user as admin"""

# Path: cli/admin.py
# def list_admin():
# def toggle_admin(email, state):


# Path: control.py
import click
import metrics
from cli import admin as _admin
from prettytable import PrettyTable
    from cli import load_to_mongo
    from cli import load_to_mongo
    from cli import load_to_mongo
    from cli import load_to_mongo



@click.group()
def cli():
    """Unshred.it management CLI"""


@cli.group('admin')
def admin():
    """Manages admin users"""
    pass


@admin.command('list')
def admin_list():
    """List admin users"""
    _admin.list_admin()


@admin.command('add')
@click.argument('email')
def admin_add(email):
    """Mark user as admin"""
    _admin.toggle_admin(email, True)


@admin.command('remove')
@click.argument('email')
def admin_remove(email):
    """Unmark user as admin"""

    _admin.toggle_admin(email, False)