bcicen / slackcat

CLI utility to post files and command output to slack
http://slackcat.chat
MIT License
1.22k stars 57 forks source link

[Feature Request] Send comment only with no file #63

Closed TrevorSayre closed 5 years ago

TrevorSayre commented 5 years ago

would like to be able to just: slackcat -c channelname --comment "test message"

fire and forget

TrevorSayre commented 5 years ago

This may be solved with just: echo -e "test message" | slackcat -t -s -c channelname

But then I have to ctrl-c twice to exit, etc.

bcicen commented 5 years ago

you should not need to ctrl-c when streaming; slackcat will exit when piped input reaches EOF.

Using your example:

slackcat connected to team as user
slackcat starting stream
test message
slackcat flushing remaining messages to Slack...
slackcat posted 1 message lines to channelname
bcicen commented 5 years ago

closing for now; feel free to reopen if you have further questions