Skip to content

Instantly share code, notes, and snippets.

@wbond
Created February 24, 2017 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wbond/ce4dca7818f8280efb7890686716a3e7 to your computer and use it in GitHub Desktop.
Save wbond/ce4dca7818f8280efb7890686716a3e7 to your computer and use it in GitHub Desktop.
from Default.exec import ExecCommand
class MyFirstExecCommand(ExecCommand):
def finish(self, proc):
super().finish(proc)
errs = self.output_view.find_all_results()
if len(errs) == 0:
sublime.active_window().run_command('my_second_exec_command')
class MySecondExecCommand(ExecCommand):
def finish(self, proc):
super().finish(proc)
errs = self.output_view.find_all_results()
if len(errs) == 0:
sublime.active_window().run_command('my_final_command')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment