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

Class RunCmdCommand

xtools.py:389–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387
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

no outgoing calls

Tested by

no test coverage detected