pskenny / jfreecycle

♻️ Freecycle.org command-line utility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub

♻️ jfreecycle

NOTE: In alpha stage, do not use.
NOTE: Be cool. Don't blast freecycle with requests.

Command-line utility for freecycle.org.

asciicast

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

About

♻️ Freecycle.org command-line utility

License:GNU Affero General Public License v3.0


Languages

Language:Java 100.0%