po-util can now download libraries from Particle Libraries 2.0 using
Libraries can be downloaded using the
po lib get command, supplying the name of the library instead of a URL to a repository.
Libraries are added to the central library folder
~/.po-util/lib just like Git libraries.
$ po lib get neopixel
po-util will use particle-cli to download the library because the argument is not a URL.
If you enter an invalid library name, po-util will use
particle-cli to search for libraries instead, so that you can find the library you want.
$ po lib get liquid
Attempting to download liquid using Particle Libraries 2.0...
Checking library liquid...
Library liquid not found
> Found 4 libraries matching liquid
LiquidCrystal 0.0.3 1121 LiquidCrystal on Spark Core
LiquidCrystal_I2C_Spark 1.1.0 816 LiquidCrystal_I2C ported for Spark Core
Adafruit_LiquidCrystal 1.0.2 125 A fork of Adafruit LiquidCrystal library that support i2c / SPI character LCD backpack.
liquid-crystal-spi 0.0.1 88 A Hardware and Software SPI driven LiquidCrystal library for Spark Core.
You can add a library to a project the same way you would add a Git library:
$ po lib add neopixel
Update po-util to get this feature:
$ po update