(self, edit)
| 341 | |
| 342 | class 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 | |
| 352 | class Base64DecodeLineCommand(sublime_plugin.TextCommand): |
nothing calls this directly
no test coverage detected