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

Class Base64EncodeTextCommand

xtools.py:328–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326
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

no outgoing calls

Tested by

no test coverage detected