Skip to content

Commit 47eef4c

Browse files
committed
Added 'all' option to the groups option.
1 parent ba74e03 commit 47eef4c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

meshbook.py

+4
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ async def process_device_or_group(pseudo_target, group_list, os_categories, targ
251251
if sub_pseudo_target in group_list:
252252
matched_devices = await filter_targets(group_list[sub_pseudo_target], os_categories, target_os)
253253
target_list.extend(matched_devices)
254+
if pseudo_target.lower() == "all":
255+
for group in group_list:
256+
matched_devices = await filter_targets(group_list[group], os_categories, target_os)
257+
target_list.extend(matched_devices)
254258
else:
255259
console(text_color.yellow + "The 'groups' method is being used, but only one string is given. Did you mean 'group'?", True)
256260

0 commit comments

Comments
 (0)