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

Method run

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

Source from the content-addressed store, hash-verified

341
342class Base64EncodeLineCommand(sublime_plugin.TextCommand):
343 def run(self, edit):
344 texts = get_buffer_text(self.view).strip('\n').split('\n')
345 lines = ''
346 for line in texts:
347 line = base64.b64encode(line.encode())
348 lines += line.decode() + '\n'
349 panel_print(self.view, edit, lines)
350
351
352class Base64DecodeLineCommand(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