Official Structure Support
I have added support for Particle's official project structure to po-util. Any project created with Particle CLI or Particle Workbench can now be built using po-util.
To get the update you'll need to run the following:
po update
po install
There are a few new commands that allow you to build the official structure:
First you must have a Particle project you want to build. If you need to make one you can do:
particle project create . --name myProject
cd myProject
The new commands are build-beta
, flash-beta
, and clean-beta
. You can run them like so:
po PLATFORM build-beta
po PLATFORM flash-beta
po PLATFORM clean-beta
In addition, all of the options from Particle Workbench are supported:
clean-user
clean-all
clean-debug
compile-user
compile-all
compile-debug
flash-user
flash-all
flash-debug
To use the options you can use the run
command.
Example: if you want to build the user firmware for a photon you could do:
po photon run compile-user
If you forget any of these options you can press the TAB key after run
to autocomplete the different options. In case you didn't know, po-util has TAB completion for nearly all commands, making it much easier to choose the arguments you want.