Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions commands2/subsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down