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

Method run

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

Source from the content-addressed store, hash-verified

371
372class Md5EncryptTextCommand(sublime_plugin.TextCommand):
373 def run(self, edit):
374 text = get_buffer_text(self.view).strip('\n')
375 text = hashlib.md5(text.encode()).hexdigest()
376 panel_print(self.view, edit, text)
377
378
379class Md5EncryptLineCommand(sublime_plugin.TextCommand):

Callers

nothing calls this directly

Calls 2

get_buffer_textFunction · 0.85
panel_printFunction · 0.85

Tested by

no test coverage detected