# Path: core/commands.py
# def get_commands(include=None, exclude=None):
#     commands = []
#     for n, f in getmembers(modules[__name__], isfunction):
#         if n in [c for c, _ in commands]:
#             continue
#         if hasattr(f, 'behavior'):
#             if f.__name__.startswith('_'):
#                 shortname = f.__name__.lstrip('_')
#                 n, f = shortname, getattr(modules[__name__], shortname)
#                 f.__name__ = shortname
#             if (include is None or n in include) and (exclude is None or n not in exclude):
#                 commands.append((n, f))
#     return commands


from fabric.api import local, settings, task
from core.commands import get_commands
#!/usr/bin/env python
# -*- coding: utf-8 -*-



@task
def console():
    """ Open framework's console. """
    with settings(remote_interrupt=False):
        local('python main.py')



# Path: core/commands.py
# def get_commands(include=None, exclude=None):
#     commands = []
#     for n, f in getmembers(modules[__name__], isfunction):
#         if n in [c for c, _ in commands]:
#             continue
#         if hasattr(f, 'behavior'):
#             if f.__name__.startswith('_'):
#                 shortname = f.__name__.lstrip('_')
#                 n, f = shortname, getattr(modules[__name__], shortname)
#                 f.__name__ = shortname
#             if (include is None or n in include) and (exclude is None or n not in exclude):
#                 commands.append((n, f))
#     return commands


# Path: fabfile.py
from fabric.api import local, settings, task
from core.commands import get_commands

#!/usr/bin/env python
# -*- coding: utf-8 -*-



@task
def console():
    """ Open framework's console. """
    with settings(remote_interrupt=False):
        local('python main.py')



for name, func in get_commands(exclude=['list']):