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

Method printSetting

utils/ansiprint.py:11–25  ·  view source on GitHub ↗
(section:str)

Source from the content-addressed store, hash-verified

9
10 @staticmethod
11 def printSetting(section:str):
12
13 title_message = Color.format(locale.get("config.table_key_title"))
14 title_value = Color.format(locale.get("config.table_value_title"))
15 data_list= []
16 option = Settings.setting[section]
17
18 for key in option:
19 key_color = Color.format(f"[blue]{key}[reset]")
20 key_value = Color.format(f"[green]{option[key]}[reset]")
21 data_list.append([key_color, key_value])
22
23 table_format = "mixed_outline"
24 table = tabulate(data_list, headers=[title_message, title_value], tablefmt=table_format)
25 print(table)
26
27
28 @staticmethod

Callers 2

do_optionsMethod · 0.80
do_showMethod · 0.80

Calls 2

formatMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected