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

Method run

xtools.py:380–385  ·  view source on GitHub ↗
(self, edit)

Source from the content-addressed store, hash-verified

378
379class Md5EncryptLineCommand(sublime_plugin.TextCommand):
380 def run(self, edit):
381 texts = get_buffer_text(self.view).strip('\n').split('\n')
382 lines = ''
383 for line in texts:
384 lines += hashlib.md5(line.encode()).hexdigest() + '\n'
385 panel_print(self.view, edit, lines)
386
387
388# Command

Callers

nothing calls this directly

Calls 2

get_buffer_textFunction · 0.85
panel_printFunction · 0.85

Tested by

no test coverage detected