ndr

command module
v0.16.9 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 1 Imported by: 0

README

ndr

                 /$$          
                | $$          
 /$$$$$$$   /$$$$$$$  /$$$$$$ 
| $$__  $$ /$$__  $$ /$$__  $$
| $$  \ $$| $$  | $$| $$  \__/
| $$  | $$| $$  | $$| $$      
| $$  | $$|  $$$$$$$| $$      
|__/  |__/ \_______/|__/ 

nuo daily convenient tools set

Feature

  1. 支持将日报按照格式要求逐条通过命令的方式写入到指定的excel or db
  2. 按照参数读取excel文件 or db内指定日期的日报信息,输出到控制台
  3. 按照参数读取指定时间区间内的日报,输出到控制台.
  4. 支持mac, window, linux
  5. 支持诺诺云办公提交日报(通过控制浏览器方式实现)
  6. 支持清理各个地区打包后的版本文件夹
  7. 支持清理各个地区release远程分支
  8. 支持qr解析及生成
  9. 自动生成默认的配置文件,存放于用户根目录(下面的window配置仅为参考)
  10. 支持sentry3应用日志,导出为json文件,或纯日志文本文件
  11. 支持oss&cos数据查看
  12. 支持内网通知消息发送单发及群发
  13. 支持阿里云签到&领取奖励
  14. 支持azure AI 翻译,直接翻译水平
  15. 支持azure tts 需要token
  16. 支持edge tts 无限制

Install

  1. https://github.com/Achillesxu/ndr/releases 下载最新的二进制文件
  2. 将ndr 二进制程序放到windows的Path目录下,或者mac/linux 可执行目录下
  3. 验证 ndr --help(mac), ndr --help(windows cmd), ndr.exe --help(windows powershell)
  4. 添加配置文件,mac,用户根目录 /Users/your_user_name;windows,根目录C:\Users\your_user_name
  5. 配置文件名为.ndr.toml
  6. 配置文件请询问作者

Using

ndr mount # 挂载samba 网盘到本地, mac挂载到指定目录,windows挂载到具体的盘符
ndr umount # 卸载网盘
ndr xls read -r 5 # 读取已经提交到共享网盘指定excel的最近5日的日报记录
ndr xls write -r "你好" -c 任务需求 -p 20% # 将当日一条记录提交到共享网盘指定excel
ndr clean remote_branch -s 5 -a beijing -d=true # 北京地区远程分支保留最近的5个
ndr clean pkg -s 5 -a hubei -d=true # 共享网盘地区打包文件夹保留最近5个
ndr oa day # 将今天的日报提交到oa 工作汇报
ndr qr dec --path x.png -t=true
ndr qr enc --string "hello world" --width 300 --height 300 --out_dir /path
ndr sentry login
ndr sentry es --app_id fastinvoice-server --query "log_no:123456"  -p 0

Using Procedures

以上都配置好后,日常提交日报流程

ndr mount
ndr xls write -r "你好"
ndr xls read
ndr oa day

Docker Image

用于远程浏览器提交日报 拉取镜像 docker pull ghcr.io/go-rod/rod 运行 docker run -d --name your_rod --network host ghcr.io/go-rod/rod

修改配置文件

[remote]
url="your_ip:7317"

Instruction

如果要本地浏览器提交日报,仅支持较新版本的浏览器(chrome),支持列表请查看 https://go-rod.github.io/#/

Documentation

Overview

Copyright © 2022 Achilles Xu yuqingxushiyin@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Directories

Path Synopsis
Package cmd
Package cmd
Package internal Time : 2023/9/3 16:36 Author : xushiyin contact : yuqingxushiyin@gmail.com desc: get aliyun refresh token ```javascript copy(JSON.parse(localStorage.token).refresh_token); console.log(JSON.parse(localStorage.token).refresh_token); ```
Package internal Time : 2023/9/3 16:36 Author : xushiyin contact : yuqingxushiyin@gmail.com desc: get aliyun refresh token ```javascript copy(JSON.parse(localStorage.token).refresh_token); console.log(JSON.parse(localStorage.token).refresh_token); ```
commands
Package commands Time : 2022/9/25 23:05 Author : xushiyin contact : yuqingxushiyin@gmail.com
Package commands Time : 2022/9/25 23:05 Author : xushiyin contact : yuqingxushiyin@gmail.com
excels
Package excels Package internal Time : 2022/9/3 15:26 Author : xushiyin contact : yuqingxushiyin@gmail.com
Package excels Package internal Time : 2022/9/3 15:26 Author : xushiyin contact : yuqingxushiyin@gmail.com
files_watcher
Package files_watcher Time : 2022/11/2 20:18 Author : xushiyin contact : yuqingxushiyin@gmail.com
Package files_watcher Time : 2022/11/2 20:18 Author : xushiyin contact : yuqingxushiyin@gmail.com
notify
Package notify Time : 2023/9/3 17:15 Author : xushiyin contact : yuqingxushiyin@gmail.com
Package notify Time : 2023/9/3 17:15 Author : xushiyin contact : yuqingxushiyin@gmail.com
notify/telegram
Package telegram Time : 2023/9/3 17:16 Author : xushiyin contact : yuqingxushiyin@gmail.com
Package telegram Time : 2023/9/3 17:16 Author : xushiyin contact : yuqingxushiyin@gmail.com
server
model
Package model Time : 2023/9/24 16:17 Author : xushiyin contact : yuqingxushiyin@gmail.com
Package model Time : 2023/9/24 16:17 Author : xushiyin contact : yuqingxushiyin@gmail.com

Jump to

Keyboard shortcuts

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