dingmark

module
v0.3.0 Latest Latest
Warning

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

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

README

dingmark (CLI & WASM)

Go CLI and WASM online for DingTalk send markdown message.

dingmark(WASM)

img.png

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

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

Directories

Path Synopsis
cmd
cmdwasm
pkg
third_party

Jump to

Keyboard shortcuts

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