showVersion 显示版本信息
()
| 116 | |
| 117 | // showVersion 显示版本信息 |
| 118 | func (r *RootCmd) showVersion() { |
| 119 | fmt.Printf("Reality协议目标网站检测工具\n") |
| 120 | fmt.Printf("版本: %s\n", version.GetVersion()) |
| 121 | fmt.Printf("提交: %s\n", version.GetCommit()) |
| 122 | fmt.Printf("构建时间: %s\n", version.GetBuildTime()) |
| 123 | fmt.Printf("GitHub: https://github.com/V2RaySSR/RealityChecker\n") |
| 124 | } |
| 125 | |
| 126 | // cleanup 清理资源 |
| 127 | func (r *RootCmd) cleanup() { |
no test coverage detected