From 47eef4cfb03a3e5fd899ca80147a63680372a42d Mon Sep 17 00:00:00 2001 From: Daan Selen Date: Tue, 4 Mar 2025 11:57:41 +0100 Subject: [PATCH] Added 'all' option to the groups option. --- meshbook.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meshbook.py b/meshbook.py index d11490e..0f051a5 100644 --- a/meshbook.py +++ b/meshbook.py @@ -251,6 +251,10 @@ async def gather_targets(meshbook: dict, group_list: dict[str, list[dict]], os_c if sub_pseudo_target in group_list: matched_devices = await filter_targets(group_list[sub_pseudo_target], os_categories, target_os) target_list.extend(matched_devices) + if pseudo_target.lower() == "all": + for group in group_list: + matched_devices = await filter_targets(group_list[group], os_categories, target_os) + target_list.extend(matched_devices) else: console(text_color.yellow + "The 'groups' method is being used, but only one string is given. Did you mean 'group'?", True)