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

Method run

xtools.py:458–473  ·  view source on GitHub ↗
(self, edit, tool)

Source from the content-addressed store, hash-verified

456# highlight httpx nulcie result
457class HighlightHttpxNucleiCommand(sublime_plugin.TextCommand):
458 def run(self, edit, tool):
459 text = get_buffer_text(self.view)
460
461 if tool == 'httpx':
462 text = format_httpx_result(text)
463 if tool == 'nuclei':
464 text = format_nuclei_result(text)
465 if tool == 'text':
466 self.view.assign_syntax(SYNTAX_FILE)
467 return None
468
469 if text == '':
470 return None
471
472 update_file(self.view, edit, text)
473 self.view.assign_syntax(SYNTAX_FILE)
474
475
476

Callers

nothing calls this directly

Calls 4

get_buffer_textFunction · 0.85
format_httpx_resultFunction · 0.85
format_nuclei_resultFunction · 0.85
update_fileFunction · 0.85

Tested by

no test coverage detected