1个稳定版本
1.0.0 | 2021年9月8日 |
---|
#5 在 #incoming
12KB
90 行
swok
基本的Slack Webhook CLI
使用Slack Incoming Webhook API向Slack频道发送消息。
安装
您必须在系统上安装Rust工具链才能安装此CLI。如果您想帮助打包它,请与我联系!
cargo install swook
用法
swook 1.0.0
Send message to slack channels using the Slack Incoming Webhook API
Note: environment variable are read from environment enriched by .env file found in current directory and parents
USAGE:
swook [OPTIONS] <text>
FLAGS:
-h, --help
Prints help information
-V, --version
Prints version information
OPTIONS:
--attachment <attachment>
The text of an attachement (optional)
--attachment-color <attachment-color>
The color of the attachment (valid only if a text has been specified)
-c, --channel <channel>
Channel to publish to, if not present it is read from SWOOK_CHANNEL environment variable
If ommited, the message will be published to the default webhook channel
-i, --user-icon-url <user-icon-url>
The user icon url (optional)
-n, --username <username>
The username (optional)
-u, --webhook-url <webhook-url>
Webhook url, if not present it is read from SWOOK_WEBHOOK_URL environment variable
ARGS:
<text>
The text of the message to publish
许可证
MIT
依赖项
~9–23MB
~366K SLoC