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

Class Base64DecodeLineCommand

xtools.py:352–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350
351
352class Base64DecodeLineCommand(sublime_plugin.TextCommand):
353 def run(self, edit):
354 texts = get_buffer_text(self.view).strip('\n').split('\n')
355 lines = ''
356 for line in texts:
357 line = base64.b64decode(line.encode())
358 lines += line.decode() + '\n'
359 panel_print(self.view, edit, lines)
360
361
362class UrlEncodeDecodeTextCommand(sublime_plugin.TextCommand):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected