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

Method __init__

console/console.py:16–29  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

14 or sqlite database, facilitating searches with greater ease
15 """
16 def __init__(self, *args, **kwargs) -> None:
17 super().__init__(*args, **kwargs, allow_cli_args=False, auto_load_commands=False)
18 cmd = Color.format("[yellow]>[blue]>[red]>[reset]")
19 prompt = Color.format("[yellow]mapXp[blue]lo[red]re[reset]")
20 self._default_prompt = f'{prompt} {cmd} '
21
22 self.prompt = self._default_prompt
23 self.register_postcmd_hook(self._postcmd)
24 self.debug=True
25 self._results = []
26 self._core = DataManager()
27 self._filter_options = Settings.filter_options
28 self._args = args
29 self._commands = []
30
31 use_parser = Cmd2ArgumentParser(add_help=locale.get("help_import"))
32

Callers

nothing calls this directly

Calls 2

DataManagerClass · 0.90
formatMethod · 0.45

Tested by

no test coverage detected