Skip to content
This repository has been archived by the owner on Nov 12, 2021. It is now read-only.

pskenny/jfreecycle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Languages