NOTE: In alpha stage, do not use.
NOTE: Be cool. Don't blast freecycle with requests.
Command-line utility for freecycle.org.
> 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.
java -jar /path/to/jar/jfreecycle.jar
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
# 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