McKael / madonctl

CLI client for the Mastodon social network API
MIT License
194 stars 9 forks source link

stream command does not pass arguments #19

Closed cerisara closed 5 years ago

cerisara commented 5 years ago

Hi, thanks for the great cli ! I tried: madonctl stream --notifications-only --notification-types mentions --command aa.sh and in aa.sh, I have:

!/bin/bash

echo $@

but no argument is printed when I receive a notification ?!

Thanks !

McKael commented 5 years ago

The data are sent to the command's standard input.

Try replacing "echo $@" with "cat", or just try:

 madonctl stream --notifications-only --notification-types mentions --command /bin/cat

This should work.

cerisara commented 5 years ago

Works great, thanks a lot ! Really great cli api...