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

Method run

xtools.py:489–499  ·  view source on GitHub ↗
(self, edit, shell)

Source from the content-addressed store, hash-verified

487# Reserve shell tool
488class ReverseShellToolsCommand(sublime_plugin.TextCommand):
489 def run(self, edit, shell):
490 ip_port = get_buffer_text(self.view)
491 if shell == 'bash':
492 text = reverse_shell_tools('bash',ip_port)
493 if shell == 'sh':
494 text = reverse_shell_tools('sh',ip_port)
495 if shell == 'other':
496 text = reverse_shell_tools('other',ip_port)
497
498 if len(text) > 0:
499 new_view(self.view, edit, text, 'Bash.sublime-syntax')
500
501
502# Input text

Callers

nothing calls this directly

Calls 3

get_buffer_textFunction · 0.85
reverse_shell_toolsFunction · 0.85
new_viewFunction · 0.85

Tested by

no test coverage detected