https://github.com/alswl/dingmark
Go CLI and WASM online for DingTalk send markdown message.
https://github.com/alswl/dingmark
cli dingding dingtalk dingtalk-robot golang wasm
Last synced: about 1 year ago
JSON representation
Go CLI and WASM online for DingTalk send markdown message.
- Host: GitHub
- URL: https://github.com/alswl/dingmark
- Owner: alswl
- License: apache-2.0
- Created: 2024-02-05T05:10:11.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-25T09:06:34.000Z (over 1 year ago)
- Last Synced: 2025-03-17T00:41:26.714Z (about 1 year ago)
- Topics: cli, dingding, dingtalk, dingtalk-robot, golang, wasm
- Language: JavaScript
- Homepage: https://alswl.github.io/dingmark/
- Size: 6.31 MB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# dingmark (CLI & WASM)
Go CLI and WASM online for DingTalk send markdown message.
## WASM online(Recommended)
[dingmark(WASM)](https://alswl.github.io/dingmark/)

## CLI
Send markdown:
```bash
dingmark send \
--token 129xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxf7 \
--secret SECf8exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx670 \
"欢迎使用 dingmark" \
'今天撸了一个新项目 dingmark,可以使用 Markdown 来发送钉钉消息,消息内容可以是富文本。

特别之处在,这个项目不仅提供一个 cli 命令,还基于 WASM 做了在线版本,用户可以不用下载命令直接在网页上发送消息。
点开即用,快来试试吧,
[dingmark(WASM)](https://alswl.github.io/dingmark/)'
```
More:
```bash
dingmark -h
Usage:
dingmark [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
send
Flags:
--config string config file (default is $HOME/.config/dingmark.yaml)
-h, --help help for dingmark
--secret string secret
--token string token
-v, --version version for dingmark
Use "dingmark [command] --help" for more information about a command.
```
Document: [alswl/dingmark/docs](https://github.com/alswl/dingmark/blob/master/docs/dingmark.md)
### CLI Configurations
Config file is located at `$HOME/.config/dingmark.yaml`.
```yaml
token: 129xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxf7
secret: SECxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx670
```
## Deploy your self-host WASM
- prepare cors.sh token, and put it to `.cors.sh-token`
- run `build-wasm.sh` to build wasm
- now the `static` directory is ready to deploy
- I recommend to use Github Pages to host the static files