# chatctl **Repository Path**: vfancloud/chatctl ## Basic Information - **Project Name**: chatctl - **Description**: chatctl发送告警守护进程 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-06 - **Last Updated**: 2024-03-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # chatctl chatctl用于检查指定配置文件中的产品到期时间 ## 提交代码 ```bash git add . git commit -m "" git push origin chatctl_dev ``` ## 合并到master分支 ```bash git checkout master git pull git merge chatctl_dev ``` ## 打Tag && 删除Tag ```bash git tag -a v1.1 -m "修复发送异常BUG" git tag git push origin v1.1 git tag -d git push origin :refs/tags/ git log --decorate ``` ## 修改配置文件 git: https://tektontest/notice-conf.git ## 代码编译 ```bash export GO111MODULE=on \ CGO_ENABLED=0 \ GOOS=linux \ GOPROXY=https://goproxy.cn \ GOARCH=amd64 cd src/ go mod download go build -o chatctl main/main.go ``` ## chatctl工具使用 ```bash 指定配置文件检查产品是否过期,使用示例: chatctl -f etc/config.json Usage: chatctl [flags] chatctl [command] Available Commands: help Help about any command start 以守护进程方式启动chatctl Flags: -f, --config string specify the configuration file path (default "etc/config.json") -h, --help help for chatctl -v, --version print chatctl version Use "chatctl [command] --help" for more information about a command. ``` ```bash 以守护进程方式启动chatctl,需要指定cron表达式来指定执行周期,示例: chatctl start -c "* * * * *" Usage: chatctl start [flags] Flags: -f, --config string specify the configuration file path (default "etc/config.json") -c, --cron string cron expressions -h, --help help for start Global Flags: -v, --version print chatctl version ```