🎨 inject version code

This commit is contained in:
naiba
2020-11-30 12:45:51 +08:00
parent cf99c5f145
commit e0a26267bd
2 changed files with 5 additions and 1 deletions

View File

@@ -60,6 +60,9 @@ func doSelfUpdate() {
}
func main() {
// 来自于 GoReleaser 的版本号
dao.Version = version
rootCmd.PersistentFlags().StringVarP(&server, "server", "s", "localhost:5555", "客户端ID")
rootCmd.PersistentFlags().StringVarP(&clientID, "id", "i", "", "客户端ID")
rootCmd.PersistentFlags().StringVarP(&clientSecret, "secret", "p", "", "客户端Secret")