dingmark

module
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: Apache-2.0

README

dingmark (CLI & WASM)

Go CLI and WASM online for DingTalk send markdown message.

dingmark(WASM)

img.png

NOTICE: The WASM online version required CORS Token, I prefer https://cors.sh/ (free) to proxy the request. Why CORS Token is required? Because browser security policy, the request from browser to DingTalk server is blocked by CORS policy.

CLI

Send markdown:

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

![img](https://github.com/alswl/dingmark/raw/master/assets/snapshot.png)

特别之处在,这个项目不仅提供一个 cli 命令,还基于 WASM 做了在线版本,用户可以不用下载命令直接在网页上发送消息。 

点开即用,快来试试吧,

[dingmark(WASM)](https://alswl.github.io/dingmark/)'

More:

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

CLI Configurations

Config file is located at $HOME/.config/dingmark.yaml.

token: 129xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxf7
secret: SECxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx670

Directories

Path Synopsis
cmd
dingmark command
gendocs command
cmdwasm
dingmark command
pkg
third_party

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL