# Path: core/loader.py
# def load_module(modname):
# def delete_module(modname, paranoid=None):
# def check_dependencies():
# def check_create_dirs():
# def open_database(path):
# def close_database(connection):
# 
# Path: core/updater.py
# def update_rext():
# def update_rext_force():
# def update_oui():
# 
# Path: interface/messages.py
# def print_error(*args, **kwargs):
#     print(Color.RED + Color.BOLD + "[-]" + Color.ENDC, *args, **kwargs)
# 
# def print_help(*args, **kwargs):
#     print(Color.PURPLE + Color.BOLD + "[?]" + Color.ENDC, *args, **kwargs)
# 
# def print_info(*args, **kwargs):
#     print(Color.BLUE + Color.BOLD + "[*]" + Color.ENDC, *args, **kwargs)
# 
# def print_success(*args, **kwargs):
#     print(Color.GREEN + Color.BOLD + "[+]" + Color.ENDC, *args, **kwargs)


import cmd
import sys
import interface.utils
import core.globals
from core import loader
from core import updater
from interface.messages import print_error, print_help, print_info, print_success
        igon = len(module_line) - len(text)
        return [s[igon:] for s in modules if s.startswith(module_line)]

    def complete_show(self, text, line, begidx, endidx):
        modules = self.commands['show']
        module_line = line.partition(' ')[2]
        igon = len(module_line) - len(text)
        return [s[igon:] for s in modules if s.startswith(module_line)]

    # Help to commands section

    def help_show(self):
        print_help("list available modules and vendors")

    def help_load(self):
        print_help("load module")
        print("Usage: load <path>")

    def help_update(self):  # Recreate this with python formatter
        print_help("update REXT functionality")
        print("Usage: update <argument>")
        print("Available arguments:\n"
                     "\tno argument\n\t\tupdate REXT using git\n"
                     "\toui\n\t\tupdate MAC vendor database\n"
                     "\tforce\n\t\tdo git reset --hard and update\n")

    def help_unload(self):
        print_help("return to root of REXT modules")

    def help_exit(self):

# Path: core/loader.py
# def load_module(modname):
# def delete_module(modname, paranoid=None):
# def check_dependencies():
# def check_create_dirs():
# def open_database(path):
# def close_database(connection):
# 
# Path: core/updater.py
# def update_rext():
# def update_rext_force():
# def update_oui():
# 
# Path: interface/messages.py
# def print_error(*args, **kwargs):
#     print(Color.RED + Color.BOLD + "[-]" + Color.ENDC, *args, **kwargs)
# 
# def print_help(*args, **kwargs):
#     print(Color.PURPLE + Color.BOLD + "[?]" + Color.ENDC, *args, **kwargs)
# 
# def print_info(*args, **kwargs):
#     print(Color.BLUE + Color.BOLD + "[*]" + Color.ENDC, *args, **kwargs)
# 
# def print_success(*args, **kwargs):
#     print(Color.GREEN + Color.BOLD + "[+]" + Color.ENDC, *args, **kwargs)


# Path: interface/cmdui.py
import cmd
import sys
import interface.utils
import core.globals
from core import loader
from core import updater
from interface.messages import print_error, print_help, print_info, print_success

        igon = len(module_line) - len(text)
        return [s[igon:] for s in modules if s.startswith(module_line)]

    def complete_show(self, text, line, begidx, endidx):
        modules = self.commands['show']
        module_line = line.partition(' ')[2]
        igon = len(module_line) - len(text)
        return [s[igon:] for s in modules if s.startswith(module_line)]

    # Help to commands section

    def help_show(self):
        print_help("list available modules and vendors")

    def help_load(self):
        print_help("load module")
        print("Usage: load <path>")

    def help_update(self):  # Recreate this with python formatter
        print_help("update REXT functionality")
        print("Usage: update <argument>")
        print("Available arguments:\n"
                     "\tno argument\n\t\tupdate REXT using git\n"
                     "\toui\n\t\tupdate MAC vendor database\n"
                     "\tforce\n\t\tdo git reset --hard and update\n")

    def help_unload(self):
        print_help("return to root of REXT modules")

    def help_exit(self):

        print_help("Exit REXT")