MCPcopy Index your code
hub / github.com/nodejs/node / runcmd

Function runcmd

tools/icu/icutrim.py:147–160  ·  view source on GitHub ↗
(tool, cmd, doContinue=False)

Source from the content-addressed store, hash-verified

145
146## TODO: need to improve this. Quotes, etc.
147def runcmd(tool, cmd, doContinue=False):
148 if(options.toolpath):
149 cmd = os.path.join(options.toolpath, tool) + " " + cmd
150 else:
151 cmd = tool + " " + cmd
152
153 if(options.verbose>4):
154 print("# " + cmd)
155
156 rc = os.system(cmd)
157 if rc != 0 and not doContinue:
158 print("FAILED: %s" % cmd)
159 sys.exit(1)
160 return rc
161
162## STEP 0 - read in json config
163with io.open(options.filterfile, encoding='utf-8') as fi:

Callers 2

icutrim.pyFile · 0.85
removeListFunction · 0.85

Calls 3

printFunction · 0.50
joinMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…