PlatformIO Community

Invoke a build by name (Atom, VSCode)


Is there a way in Atom (through either Python or Atom’s coffee script API) to start a PlatformIO build by name, just as if you had selected it by name from the PIO Build palette?

I also want to ask the same question about Visual Studio Code.

The reason is, I’d like to peek at my project files and just invoke the correct build based on a settings file. I’ve got a solution that invokes pio in a shell through the process-palette plugin, but it’s a Python script that imports a bunch of Tk. It would be much simplified if the invoked script could just select the build by name within the editor.