We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6edb719 + 82b4a4a commit 9887686Copy full SHA for 9887686
cmd/update.go
@@ -59,6 +59,8 @@ var (
59
githubAPIBase = "https://api.github.com"
60
download = doDownload
61
osExecutable = os.Executable
62
+ // DisableUpdateCmd removes the `oasis update` command. This is suitable for environments where the package manager handles updates.
63
+ DisableUpdateCmd = "false"
64
)
65
66
// semverDiffers reports whether versions a and b differ (ignoring leading 'v').
@@ -505,6 +507,9 @@ then downloads and replaces the current binary.`,
505
507
}
506
508
509
func init() {
510
+ if DisableUpdateCmd == "true" {
511
+ return
512
+ }
513
updateCmd.Flags().AddFlagSet(progress.AnswerYesFlag)
514
rootCmd.AddCommand(updateCmd)
515
0 commit comments