# 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
# This file is part of REXT
# cmdui.py - command line interface script
# Author: Ján Trenčanský
# License: GNU GPL v3




class Interpreter(cmd.Cmd):
    #
    modules = {}
    commands = {'modules': [], 'show': []}
    active_module = modules
    active_module_import_name = ""

    def __init__(self, stdout=sys.stdout):
        loader.check_dependencies()
        loader.check_create_dirs()

# 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

# This file is part of REXT
# cmdui.py - command line interface script
# Author: Ján Trenčanský
# License: GNU GPL v3




class Interpreter(cmd.Cmd):
    #
    modules = {}
    commands = {'modules': [], 'show': []}
    active_module = modules
    active_module_import_name = ""

    def __init__(self, stdout=sys.stdout):
        loader.check_dependencies()
        loader.check_create_dirs()

        core.globals.ouidb_conn = loader.open_database("./databases/oui.db")