# watcher **Repository Path**: kannon01/watcher ## Basic Information - **Project Name**: watcher - **Description**: 监控文件夹,执行命令 - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 0 - **Created**: 2018-08-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # watcher ## build ``` set GOARCH=amd64 set GOOS=linux go build -o watcher gitee.com/wydcn/watcher ``` ## build window hidden cmd window ``` set GOARCH=amd64 set GOOS=windows go build -o watcher.exe -ldflags -H=windowsgui gitee.com/wydcn/watcher ``` ## 项目介绍 监控文件夹的更改,自动执行命令 ### 配置文件 ``` - path: C:\Users\wyd10\OneDrive\doc\doc-private # 监听文件夹 command: C:\code\tools\watcher\command\doc-pri.bat # 执行的命令文件 delayTime: 20 # 更新后多少秒内没有再次更新则执行命令 ignore: ^.git # 忽略的文件 - path: C:\Users\wyd10\OneDrive\doc\doc-public command: C:\code\tools\watcher\command\doc-pub.bat delayTime: 20 ignore: ^.git ```