From 2af04a94fe1b6245070b39c611a7a7bb8afa84d9 Mon Sep 17 00:00:00 2001 From: condret Date: Wed, 7 Jun 2023 03:05:11 +0200 Subject: [PATCH] Add README.md --- README.md | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ff22880 --- /dev/null +++ b/README.md @@ -0,0 +1,61 @@ +## fedi\_tools: tools for interacting with fedi from the cli + +# Dependencies + +* libcurl +* radare2 (build and install it from https://github.com/radareorg/radare2) + + +# Build + +Just run `make` + + +# Installation + +Just run `make install` as root after building + + +# Configuration + +radare2 comes with sdb (see https://github.com/radareorg/sdb) and fedi\_tools uses sdb for configuration, +because I don't want to write a config parser. +For configuration you need to create `.fedi_tools.sdb` in your home directory and set the following keys: + +* instance +* user +* password + +just do this: + +```sh +sdb ~/.fedi_tools.sdb instance= +sdb ~/.fedi_tools.sdb user= +sdb ~/.fedi_tools.sdb password= +``` + + +# The tools + +So far there is only `fedi_post` which let's you make a post on fedi. +You can use it like this: + +```sh +fedi_post +``` + +`fedi_post` also has an interactive mode. If you launch it with the `-i` flag it will open $EDITOR: +You write your post, save, quit and `fedi_post` will make a post for you. +You can also attach files if you use the `-a` flag like this: + +```sh +fedi_post -a ... +``` + +Ofc this also works in combination with the `-i` flag. + + + +Enjoy! + +-- condret