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

Method run

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

Source from the content-addressed store, hash-verified

327# Text encode
328class Base64EncodeTextCommand(sublime_plugin.TextCommand):
329 def run(self, edit):
330 text = get_buffer_text(self.view)
331 text = base64.b64encode(text.encode())
332 panel_print(self.view, edit, text.decode())
333
334
335class Base64DecodeTextCommand(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