@@ -110,13 +110,17 @@ def startRun(
110
110
start , run , lambda interrupt : None , lambda : False , * requirements
111
111
)
112
112
113
+
113
114
def 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 :
116
120
"""
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,
118
122
and then runs a third action.
119
-
123
+
120
124
:param start the action to run on start
121
125
:param run the action to run every iteration
122
126
:param end the action to run on interrupt
@@ -126,6 +130,7 @@ def startRunEnd(
126
130
start , run , lambda interrupted : end (), lambda : False , * requirements
127
131
)
128
132
133
+
129
134
def print_ (message : str ) -> Command :
130
135
"""
131
136
Constructs a command that prints a message and finishes.
0 commit comments