bcicen / slackcat

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

ARM binary #33

Closed lord2800 closed 8 years ago

lord2800 commented 8 years ago

I'd love to put this on ARM-based devices. Any chance you could cross-compile to ARM as well?

bcicen commented 8 years ago

Great idea. I've added an arm build to the latest release here.

I'm only able to test via qemu-arm right now, so do let me know if there are any issues or broken functionality.

lord2800 commented 8 years ago

I can confirm that it works on an armv7 processor. Thanks for jumping on this so quickly!

$ ./slackcat-1.0-linux-arm --help
NAME:
   slackcat - redirect a file to slack

USAGE:
   ./slackcat-1.0-linux-arm [global options] command [command options] [arguments...]

VERSION:
   1.0

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --tee, -t        Print stdin to screen before posting
   --stream, -s     Stream messages to Slack continuously instead of uploading a single snippet
   --plain, -p      Write messages as plain texts instead of code blocks
   --noop       Skip posting file to Slack. Useful for testing
   --configure      Configure Slackcat via oauth
   --channel, -c    Slack channel or group to post to
   --filename, -n   Filename for upload. Defaults to current timestamp
   --filetype       Specify filetype for synax highlighting
   --comment        Initial comment for snippet
   --help, -h       show help
   --version, -v    print the version

$ uname -a
Linux <removed> 4.1.16.armada.1 #1 SMP Tue Jan 26 10:15:00 PST 2016 armv7l GNU/Linux
bcicen commented 8 years ago

Great! :thumbsup:

Feel free to re-open this if you hit any snags.