♻️ jfreecycle
NOTE: In alpha stage, do not use.
NOTE: Be cool. Don't blast freecycle with requests.
Command-line utility for freecycle.org.
Table Of Contents
🏗️ Building
Prerequisites
Build Jar
> git clone https://github.com/pskenny/libjfreecycle # Clone freecycle library
> cd libjfreecycle
> mvn package # Package libjfreecycle
> mvn install # Install to local Maven repository
> cd ..
> git clone https://github.com/pskenny/jfreecycle # Clone jfreecycle
> cd jfreecycle
> mvn clean compile assembly:single # Generate jar
> java -jar ./target/jfreecycle-0.1-jar-with-dependencies.jar # Run jar
Note: jar is built in target/
folder.
🚀 Running
Option 1: java -jar command
java -jar /path/to/jar/jfreecycle.jar
Option 2: aliasing
Bash:
echo "alias jfreecycle=\"java -jar /path/to/jar/jfreecycle.jar\"" >> ~/.bashrc
Fish:
echo "alias jfreecycle=\"java -jar /path/to/jar/jfreecycle.jar\"" >> ~/.config/fish/config.fish
🐾 Usage
# Display ten most recent posts from GalwayIE group
jfreecycle GalwayIE
# Display ten most recent offer posts from GalwayIE group
jfreecycle -t offer GalwayIE
# Display ten most recent wanted posts from GalwayIE group
jfreecycle -t wanted GalwayIE