paulhammond / slackcat

Post messages to Slack from the command line
MIT License
142 stars 24 forks source link

Post data received on stdin as a single message wrapped in a codeblock #11

Open saj opened 8 years ago

saj commented 8 years ago

Hi!

What was the rationale behind 8ce046db4a10c48205fa42034d025e54c5952e75? I imagine this change in behaviour would be useful when dealing with streaming output. Was that the intended use case?

I use slackcat to plumb finite chunks of command output into Slack. So that the lines of command output are not multiplexed with concurrent channel activity from other users, it would be nice to consume and post the entire stdin stream as before. Marking the text as preformated would also improve legibility.

Would you be receptive to such a PR? We could accommodate both use cases with a new --stream flag.

fabioxgn commented 8 years ago

@saj hi, this projects looks abandoned, it doesn't get any update or replies for years now.

Sorry about hijacking the issue but I've implemented a package that we use to post messages as Slackbot, this feature works just fine there, please take a look at: https://github.com/monde-sistemas/slackbot/tree/master/slackbot-console