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

Method _postcmd

console/console.py:62–69  ·  view source on GitHub ↗
(self, data: cmd2.plugin.PostcommandData)

Source from the content-addressed store, hash-verified

60 self.register_command_set(module)
61
62 def _postcmd(self, data: cmd2.plugin.PostcommandData) -> cmd2.plugin.PostcommandData:
63 self.prompt = self._default_prompt
64 for command in self._commands:
65 self.prompt+=command["module"]+Color.format("[green]>[reset] ")
66
67 if len(self._commands)== 0:
68 self._load_module(None)
69 return data
70
71 def do_quit(self, arg):
72 """Exit of the application

Callers

nothing calls this directly

Calls 2

_load_moduleMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected