Skip to content

Commit bc6e6d6

Browse files
committed
Add function
1 parent ecfdfa5 commit bc6e6d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

commands2/commandscheduler.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,12 @@ def unregisterSubsystem(self, *subsystems: Subsystem) -> None:
334334
for subsystem in subsystems:
335335
self._subsystems.pop(subsystem, None)
336336

337+
def getAllSubsystems(self) -> tuple[Subsystem]:
338+
"""
339+
Gets all registered subsystems as an immutable tuple.
340+
"""
341+
return tuple(self._subsystems.keys())
342+
337343
def unregisterAllSubsystems(self):
338344
"""
339345
Un-registers all registered Subsystems with the scheduler. All currently registered subsystems

0 commit comments

Comments
 (0)