More general parsing

This commit is contained in:
Andre Basche 2023-05-06 16:07:28 +02:00
parent 7dcb34559b
commit ea8f481b01
10 changed files with 165 additions and 128 deletions

View file

@ -48,7 +48,7 @@ def pretty_print(data, key="", intend=0, is_list=False, whitespace=" "):
def get_parameter(command, parameter):
if programs := command.programs:
if programs := command.categories:
for program in programs.values():
if data := program.settings.get(parameter):
return data