@app.command(name='list', aliases=('ls',))
def list_(all=('a', False, 'show all migrations (default: only non-applied)'),
          **opts):
    repo = opts['repo']
    all_migrations = repo.available + [m for m in repo.applied
                                       if m not in repo.available]
    for m in all_migrations:
        if m not in repo.available:
            print(colored(m, 'red') + ' (not on disk)')
        elif m in repo.applied:
            if all:
                cprint(m, 'magenta')
        else:
            out = colored(m, 'green')
            deps = []
            for dep in m.dependencies:
                if dep not in repo.applied:
                    deps.append(dep)
            if deps:
                out += ' (%s)' % ', '.join(map(str, deps))
            print(out)
Return the full SELECT statement represented by this
dataset/ETHPy150Open piranha/nomad/nomad/__init__.py/list_--crossover with--dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/orm/query.py/Query.label