CLI utility for slack notifications
Project description
Slacks aka SlackSay
This is a small CLI utility that can be used in scripts to send slack messages via Incoming Webhooks.
See: https://cloud.docker.com/u/hicrondss/repository/docker/hicrondss/slacks
Usage
Docker
Pull tha latest image:
docker pull hicrondss/slacks:latest
You only need to pass your Incoming Webhook as environment variable. This will send a message to the channel configured in your Slack webhook:
export MY_WEBHOOK_URL=https://hooks.slack.com/services/XXXXXXXXX/YYYYYYYYYYYYYYY
echo "*Hello, world!*" | docker run -e WEBHOOK_URL=${MY_WEBHOOK_URL} -i hicrondss/slacks:latest
CLI Help
docker run -i hicrondss/slacks:latest -h
usage: slacks.py [-h] [-f [FILE]] [-m [MESSAGE]] [-b] [-t] [-p]
optional arguments:
-h, --help show this help message and exit
-f [FILE], --file [FILE]
use contents of a FILE as text message
-m [MESSAGE], --message [MESSAGE]
pass message as string
-b, --block Message will be a markdown block
-t, --test Use exapmle from example.py
-p, --plaintext Format with plaintext instead of markdown
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
slacks-0.0.1.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file slacks-0.0.1.tar.gz
.
File metadata
- Download URL: slacks-0.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e236f88e754e7c7f095fc27e444ad2eb04ec8159fb01d1a3dc7000bdc92a78fc |
|
MD5 | e8303d0a977e8f870d4b85e7da04af7e |
|
BLAKE2b-256 | 75ee0ebfd815f5ecadb17b559f88e6e96f5470493ec1c4e6d184ab6505edbdc0 |
File details
Details for the file slacks-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: slacks-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60a320cee8bce64a8e2d2977d60c42f41ae4e837b3f1f170ddc499b7c9a253b5 |
|
MD5 | ee6508886d98e039b52e3f6eae678b28 |
|
BLAKE2b-256 | e0c364cd7e59d1e41cd847a8625826953fc0aee5404f5bc31997cadf4d9ae148 |