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

Method do_show

console/modules/configCommand.py:96–108  ·  view source on GitHub ↗
(self, arg:cmd2.Statement)

Source from the content-addressed store, hash-verified

94
95
96 def do_show(self, arg:cmd2.Statement):
97 if self._section is not None:
98 AnsiPrint.printSetting(self._section)
99 else:
100 #subsection = self._config[arg.arg_list[0]] if len(arg.arg_list)>0 else self._config
101
102 for section in self._config:
103 AnsiPrint.print('')
104 AnsiPrint.print_info(section)
105 AnsiPrint.print('')
106 AnsiPrint.printSetting(section)
107
108 AnsiPrint.print("\n")

Callers

nothing calls this directly

Calls 3

printSettingMethod · 0.80
printMethod · 0.45
print_infoMethod · 0.45

Tested by

no test coverage detected