MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / __init__

Method __init__

console/modules/configCommand.py:13–22  ·  view source on GitHub ↗
(self, args, section=None)

Source from the content-addressed store, hash-verified

11@with_default_category('Config Category')
12class ConfigCommandSet(CommandSet, ArgumentsManager):
13 def __init__(self, args, section=None) -> None:
14 super().__init__()
15 if hasattr(cmd2.Cmd,'do_set'):
16 delattr(cmd2.Cmd, 'do_set')
17 self._section = section
18 if section is None:
19 self._config = Settings.setting
20 else:
21 self._section = section
22 self._config = Settings.setting[section]
23
24 def _ask_overwrite(self, filename, choose='N'):
25 if choose.lower() != 'y':

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected