jo: a shell command to create JSON (http://jpmens.net/2016/03/05/a-shell-command-to-create-json-jo/) version 1.1 released (yes, with jo-1.1.exe)
@wxl I first thought
madonctl COMMAND [--unset]
(with account follow, status boost/favourite...)
... was a good way to factorize commands.
Then I realized madonctl un-COMMAND (unfollow, unboost...) was much more user-friendly but I was lazy to change it afterwards. It's in my TODO though, to be honest. :)
@wxl Not sure exactly what your use case is, but you might have a look at vipe(1) if you don't know about it. It's in the moreutils package on my system.
command1 | vipe | command2
» vipe allows you to run your editor in the middle of a unix pipeline and edit the data that is being piped between programs.
@wxl The search call returns "Results" which contain a list of statuses (and a list of accounts).
So you have to explicitly take the first item of the status list, in this case.
Hope that helps...