| ◯ ◯ ● |
| ◯ ◯ ● |
| ◯ ● ◯ |
| ◯ ● ◯ |
| ● ◯ ◯ |
| ● ◯ ◯ |
Brickline is a set of command line utilities for manipulating, modifying, and analyzing BrickLink LEGO wanted lists.
This README contains information on how to
install brickline
as well as a guide to the available commands.
Join two Bricklink Wanted List on ItemID and Color, summing the minimum quantity (MinQty) values of the two lists; it will keep the remaining metadata from the lefthand list. This is something you can't do on Bricklink right now: if you try to copy a wanted list to another wanted list with duplicate ItemID/Color combinations you will get a "Warning: Item color combination already exists".
Example:
$ ./target/release/brickline join -l ./resources/test/test_wanted_list_3.xml \
-r ./resources/test/test_wanted_list_4.xml \
-o /tmp/joined_wanted_list.xml
Left Wanted list Statistics for ./resources/test/test_wanted_list_3.xml
Total Items: 45,
Total Parts: 196,
Unique Item/Color Count: 45,
Unique Color Count: 4
Right Wanted List Statistics for ./resources/test/test_wanted_list_4.xml
Total Items: 151,
Total Parts: 848,
Unique Item/Color Count: 151,
Unique Color Count: 14
Merging wanted lists...
Merged Wanted List Statistics
Total Items: 195,
Total Parts: 1044,
Unique Item/Color Count: 195,
Unique Color Count: 15
Writing joined wanted list to /tmp/joined_wanted_list.xml
You can compile from source by installing Cargo, (Rust's package manager)
git clone git://github.com/wrobstory/brickline
cd brickline
cargo build --release
The resulting binary will be at target/release/brickline
.
I'm hoping to have Github binaries and a homebrew package available soon.