Add binary autoupdate.

This commit is contained in:
2021-05-15 17:34:50 +01:00
parent 7608d2bc50
commit 29ad85b62a
7 changed files with 92 additions and 12 deletions
+2
View File
@@ -59,6 +59,7 @@ var (
varUseLocal bool
varShowVersion bool
varDebug bool
varUpdate bool
)
func init() {
@@ -70,5 +71,6 @@ func init() {
rootCmd.PersistentFlags().BoolVarP(&varUseLocal, "local", "l", false, "Use local repository")
rootCmd.PersistentFlags().BoolVarP(&varShowVersion, "version", "v", false, "Display version")
rootCmd.PersistentFlags().BoolVarP(&varDebug, "debug", "d", false, "Enable debug mode")
rootCmd.PersistentFlags().BoolVarP(&varUpdate, "update", "u", false, "Update binary with latest")
}
}