Skip to content

sari3l/notify

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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广播

Licenses

GPL v3.0

FOSSA Status

About

各端、平台快速消息通知程序,支持配置文件形式或API调用

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages