Git Product home page Git Product logo

dingmark's Introduction

dingmark (CLI & WASM)

Go CLI and WASM online for DingTalk send markdown message.

WASM online(Recommended)

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

dingmark's People

Contributors

alswl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

chai2010

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.