MCPcopy Create free account
hub / github.com/ProjectMitosisOS/mitosis-core / execute_pass

Function execute_pass

exp_scripts/bootstrap.py:380–388  ·  view source on GitHub ↗
(cr, global_configs, i, printer, p)

Source from the content-addressed store, hash-verified

378 return 0
379
380def execute_pass(cr, global_configs, i, printer, p):
381 loop = 1 if "loop" not in p.keys() else int(p["loop"])
382 for i in range(loop):
383 cmd = "%s -loop=%d" % (p["cmd"], i) if loop > 1 else p["cmd"]
384 res = cr.execute_w_channel(cmd + " " + global_configs,
385 p["host"],
386 p["path"],
387 order=get_order(p))
388 printer.append(RunPrinter(p["host"], res, get_order(p)))
389
390def main():
391 global use_ssh_config

Callers 1

mainFunction · 0.70

Calls 4

get_orderFunction · 0.70
RunPrinterClass · 0.70
execute_w_channelMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected