interact with fedi from the commandline
Go to file
2023-06-08 06:40:06 +02:00
COPYING Add GPL3 license file 2023-06-07 03:12:36 +02:00
fedi_notifs.c Add fedi_notifs 2023-06-08 06:40:06 +02:00
fedi_post.c Add halp 2023-06-07 21:16:53 +02:00
Makefile Add fedi_notifs 2023-06-08 06:40:06 +02:00
README.md Add fedi_notifs 2023-06-08 06:40:06 +02:00

fedi_tools: tools for interacting with fedi from the cli

Dependencies

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:

sdb ~/.fedi_tools.sdb instance=<instance-url>
sdb ~/.fedi_tools.sdb user=<your-username>
sdb ~/.fedi_tools.sdb password=<your-password>

The tools

So far there are only fedi_post and fedi_notifs. The latter fetches your notifications for you, nothing too exciting. The former let's you make a post on fedi. You can use it like this:

fedi_post <text-file-containing-your-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:

fedi_post <post-file> -a <number-of-attachments> <attachment-1> <attachement-2> ... <attachment-N>

Ofc this also works in combination with the -i flag.

Enjoy!

-- condret