Git Product home page Git Product logo

notify's Introduction

Logo

license Go Report Card CodeFactor FOSSA Status

Usage

> ./notify -h       
Usage:
  notify [OPTIONS]

Application Options:
  -s, --show        显示配置信息
  -c, --config=     指定配置文件 (default: $HOME/.config/notify-config.yaml)
  -i, --id=         指定通知id
  -l, --level=      指定通告等级 (default: 0)
  -a, --aboveLevel= 指定最低通告等级
  -n, --noticer=    指定通知模块
  -v, --version     版本信息

Help Options:
  -h, --help        Show this help message

安装

go install -v github.com/sari3l/notify/cmd/notify@latest

配置

  1. 配置文件默认路径$HOME/.config/notify-config.yaml,或通过-c|--config指定
  2. 具体每个推送配置、样例见相关路径下 README.md

基本设置

每个配置内容下均可以设置三个参数,均可在-s中可见

  • notifyLevel 指定当前配置等级,默认0
  • notifyFormatter 指定当前配置内容占位符,默认[]
  • notifyDescription 当前配置内容描述内容,默认""

支持

  • 多参输入
    • echo -e "part1\npart2" | notify -n bark
    • notify part1 part22 -n bark
  • 指定id、level、模块,或最低level广播
  • 多占位自动映射
    opt := feishu.Option{Webhook: viper.GetString("notify.webhook")}
    opt.NotifyFormatter = []string{"{{part1}}", "{{part2}}"}
    opt.MsgType = "text"
    opt.Content = map[string]any{"text": "{{part2}}{{part1}}"}
    opt.ToNotifer.Send([]string{"1","2"})
    
    >> 21

Licenses

GPL v3.0

FOSSA Status

notify's People

Contributors

sari3l avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

notify's Issues

建议将项目中的 Server酱 链接换成推荐链接

您好,我是 Server酱的作者 Easy 。注意到您的项目中对接或提及了 Server酱,非常感谢对我们的支持。

这里有一个小建议。Server酱最近推出了「推荐返现计划」,您可以在项目中Server酱的官网链接后边加上推荐参数,这样在用户从这里进入Server酱并订阅会员后,您的项目将获得2元/单的佣金。

只需要用微信登录fx.ft07.com ,然后开通计划就可以获得您的推荐链接,佣金会实时地转入开通账号的微信零钱中。

希望这个计划能让您的开源项目更好。


Hello, I am Easy, the author of ServerChan. I noticed that your project has integrated or mentioned ServerChan, and I am very grateful for that.

I have a small suggestion. ServerChan has recently launched a "Referral Cashback Program". You can add a referral parameter to the link to ServerChan's official website in your project. This way, when users enter ServerChan through your link and subscribe to a membership, your project will earn a commission of 2 RMB per subscription.

You just need to log in to fx.ft07.com with WeChat, activate the program, and you will get your referral link. The commission will be instantly transferred to the WeChat Wallet of the account that activated the program.

Even though the earnings might not be substantial, I hope this program can provide some additional support for your open-source project.

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.