MCPcopy
hub / github.com/RUB-NDS/PRET / do_loop

Method do_loop

printer.py:185–194  ·  view source on GitHub ↗

Run command for multiple arguments: loop …

(self, arg)

Source from the content-addressed store, hash-verified

183
184 # ------------------------[ loop <cmd> <arg1> <arg2> … ]--------------
185 def do_loop(self, arg):
186 "Run command for multiple arguments: loop <cmd> <arg1> <arg2> …"
187 args = re.split("\s+", arg)
188 if len(args) > 1:
189 cmd = args.pop(0)
190 for arg in args:
191 output().chitchat("Executing command: '" + cmd + " " + arg + "'")
192 self.onecmd(cmd + " " + arg)
193 else:
194 self.onecmd("help loop")
195
196 # ====================================================================
197

Callers

nothing calls this directly

Calls 3

onecmdMethod · 0.95
outputClass · 0.90
chitchatMethod · 0.45

Tested by

no test coverage detected