(section:str)
| 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 |
no test coverage detected