We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6edb719 commit d509b10Copy full SHA for d509b10
cmd/update.go
@@ -59,6 +59,7 @@ var (
59
githubAPIBase = "https://api.github.com"
60
download = doDownload
61
osExecutable = os.Executable
62
+ disableUpdateSubcommand = false
63
)
64
65
// semverDiffers reports whether versions a and b differ (ignoring leading 'v').
@@ -505,6 +506,9 @@ then downloads and replaces the current binary.`,
505
506
}
507
508
func init() {
509
+ if disableUpdateSubcommand {
510
+ return
511
+ }
512
updateCmd.Flags().AddFlagSet(progress.AnswerYesFlag)
513
rootCmd.AddCommand(updateCmd)
514
0 commit comments