Sublime Forum

Target build from plugin

#1

I would like target a particular “build” command to run inside of a plugin.

I know that specifying the following will trigger the build command, but how do I specify which build to run?

view.window().run_command('build')

For example, from a plugin:

if logic1:
    view.window().run_command('build', 'build1')
else:
   view.window().run_command('build', 'build2')

Thanks!

0 Likes