diff --git a/commands2/subsystem.py b/commands2/subsystem.py index 1abdf23..d0b73d0 100644 --- a/commands2/subsystem.py +++ b/commands2/subsystem.py @@ -168,6 +168,16 @@ def startRun(self, start: Callable[[], None], run: Callable[[], None]) -> Comman return startRun(start, run, self) + def idle(self) -> Command: + """ + Constructs a command that does nothing until interrupted. Requires this subsystem. + + :returns: the command + """ + from .cmd import idle + + return idle(self) + # # From SubsystemBase #