@@ -110,13 +110,17 @@ def startRun(
110110 start , run , lambda interrupt : None , lambda : False , * requirements
111111 )
112112
113+
113114def startRunEnd (
114- start : Callable [[], Any ], run : Callable [[], Any ], end : Callable [[], Any ],
115- * requirements : Subsystem ) -> Command :
115+ start : Callable [[], Any ],
116+ run : Callable [[], Any ],
117+ end : Callable [[], Any ],
118+ * requirements : Subsystem
119+ ) -> Command :
116120 """
117- Constructs a command that runs an action once, and then runs an action every iteration until interrupted,
121+ Constructs a command that runs an action once, and then runs an action every iteration until interrupted,
118122 and then runs a third action.
119-
123+
120124 :param start the action to run on start
121125 :param run the action to run every iteration
122126 :param end the action to run on interrupt
@@ -126,6 +130,7 @@ def startRunEnd(
126130 start , run , lambda interrupted : end (), lambda : False , * requirements
127131 )
128132
133+
129134def print_ (message : str ) -> Command :
130135 """
131136 Constructs a command that prints a message and finishes.
0 commit comments