Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/walkure/stdslack
put STDOUT to slack file post
https://github.com/walkure/stdslack
Last synced: about 5 hours ago
JSON representation
put STDOUT to slack file post
- Host: GitHub
- URL: https://github.com/walkure/stdslack
- Owner: walkure
- Created: 2023-02-12T16:18:17.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-02-12T16:20:19.000Z (over 1 year ago)
- Last Synced: 2024-06-21T04:56:43.123Z (5 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stdslack
send `STDIN` to slack as a file(uses [files.upload](https://api.slack.com/methods/files.upload) endpoint).
## Usage
1. set your slack bot/user token which have [files:write](https://api.slack.com/scopes/files:write) permission and have joined target channel to environ `SLACK_TOKEN`.
2. `cat sample.txt | ./stdslack --channels , (add some options)`### When some error occurs
prints error message to `STDERR` and dump contents received from `STDIN` to `STDOUT`.
## License
MIT
## Author
walkure at 3pf.jp