from config.manager import ConfigManager
from cvars.flags import ConVarFlags

from .info import info

config_manager = ConfigManager(info.basename, cvar_prefix="killerinfo_")

config_manager.header = 'KillerInfo Configuration File'

killerinfo_enabled = config_manager.cvar('enabled',
                                         '1',
                                         'Enable/Disable the plugin\'s functionality (0 = disabled, 1 = enabled)',
                                         ConVarFlags.NONE)

config_manager.write()
config_manager.execute()
