Post by @francois

francois
@francois

@stefano
ho, and whatever you did to the scrolling, it works, thanks. It is no longer bouncing all over the place.
Since I'm at the keyboard, I was wondering:
my understanding is that you have one executable and a config file.
I imagine that it also takes command-line parameters.
My question is:
can you use that executable to also post toots ? (or whatever it is called this week )

The reason I'm asking is because at the moment I have various shell scripts posting things using madonctl.
madonctl works well, but is quite old, which means that there are several newer API options which are missing.
I would love to have a command-line tool that enables me to use the full extend of the API (self-destructing posts springs to mind).

πŸ‘ 3
Replying to @francois

@francois yes, you can! I've always been delighted by snac's post feature, so we replicated it here. The littleFedi binary ships a post subcommand that publishes toots straight from the shell - no OAuth token needed, but it does require local access to the instance (config file + database).

printf 'Hello\n' | ./littlefedi --config littlefedi.toml post
./littlefedi --config littlefedi.toml post --username alice post.md

Content comes from stdin (or -) or a file.

What it supports: visibility (public, unlisted, private, direct, local, local_unlisted), --markdown, --content-warning/--cw, --sensitive, --language, --reply-to, --quote, repeatable --media (existing attachment IDs), and blog flags (--blog, --blog-slug).

Author selection: --username optional in single-user instances; otherwise resolved from config or required when several local users exist.

On success it prints the status URL. It federates immediately and waits for the delivery queue before exiting

Limits: it creates statuses only. No boost/favourite/edit/delete commands, and media must already exist on the instance (no direct file upload via this subcommand).

So: single-way tooting from the terminal works out of the box; a full shell client for likes/reposts/edits is not there.

Replying to @stefano

@stefano
Brilliant!!!
You can stop development as far as I am concerned
😜 πŸ€ͺ 😝 πŸ₯° 😍 🀩

πŸ˜€ 1