From 1f15ef025338d4cf816556417739f1cf082f87fd Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 30 Aug 2018 14:30:55 +0200 Subject: [PATCH] Added documentation --- README.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/README.md b/README.md index 5b9d5a9..573c8f3 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,40 @@ Mastodon in mind, but can be used for other contexts, of course. It has a text interface and uses a SQLite-database. + +## Usage + +```PLAIN +$ whyblocked +This is whyblock 0.1.0. +Type add, remove, view or details. Or just the first letter. +: v + Blocked: @baduser@social.example.com because: Is very mean +Silenced: @truebelievers.example.com because: Annoying instance +: d +Which user? +@baduser@social.example.com +@baduser@social.example.com is blocked, because: Is very mean +Receipts: + https:///social.example.com/@baduser/123456789012345678 +: q +``` + +## Install + +### Dependencies + +* C++ compiler (tested: gcc 6/7/8) +* [cmake](https://cmake.org/) (at least 3.7) +* [vsqlite++](http://vsqlite.virtuosic-bytes.com/) (tested: 0.3.13) +* [libxdg-basedir](http://repo.or.cz/w/libxdg-basedir.git) (tested: 1.2) + +### Compile + +```SH +mkdir build +cd build +cmake .. +make +make install +```