MCPcopy Create free account
hub / github.com/chasingboy/Xtools / run

Method run

xtools.py:390–395  ·  view source on GitHub ↗
(self, edit, cmd)

Source from the content-addressed store, hash-verified

388# Command
389class RunCmdCommand(sublime_plugin.TextCommand):
390 def run(self, edit, cmd):
391 text = get_buffer_text(self.view)
392 global workdir
393 file = write_file(workdir,text)
394 cmd = cmd.replace('target.txt',file)
395 exec_command(cmd)
396
397
398class CurlDownloadFileCommand(sublime_plugin.TextCommand):

Callers

nothing calls this directly

Calls 3

get_buffer_textFunction · 0.85
write_fileFunction · 0.85
exec_commandFunction · 0.85

Tested by

no test coverage detected