summaryrefslogtreecommitdiff
path: root/cmd/podman/auto-update.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-07-15 10:50:13 -0400
committerGitHub <noreply@github.com>2021-07-15 10:50:13 -0400
commit5d6a36601776fee55ce3d491f96b620aa3b43218 (patch)
tree182bb6035d67378b5d4ee52a1cc081c305515f51 /cmd/podman/auto-update.go
parentbc98c2003d36f9ce5650c1e0f4445be97ca0fa18 (diff)
parent59f31d86acdf54019b081ca86340d5c33dbcf3b9 (diff)
downloadpodman-5d6a36601776fee55ce3d491f96b620aa3b43218.tar.gz
podman-5d6a36601776fee55ce3d491f96b620aa3b43218.tar.bz2
podman-5d6a36601776fee55ce3d491f96b620aa3b43218.zip
Merge pull request #10937 from vrothberg/auto-update
auto-update: add --dry-run
Diffstat (limited to 'cmd/podman/auto-update.go')
-rw-r--r--cmd/podman/auto-update.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podman/auto-update.go b/cmd/podman/auto-update.go
index 6ccf4e167..9622088d5 100644
--- a/cmd/podman/auto-update.go
+++ b/cmd/podman/auto-update.go
@@ -53,6 +53,8 @@ func init() {
flags.StringVar(&autoUpdateOptions.Authfile, authfileFlagName, auth.GetDefaultAuthFile(), "Path to the authentication file. Use REGISTRY_AUTH_FILE environment variable to override")
_ = autoUpdateCommand.RegisterFlagCompletionFunc(authfileFlagName, completion.AutocompleteDefault)
+ flags.BoolVar(&autoUpdateOptions.DryRun, "dry-run", false, "Check for pending updates")
+
flags.StringVar(&autoUpdateOptions.format, "format", "", "Change the output format to JSON or a Go template")
_ = autoUpdateCommand.RegisterFlagCompletionFunc("format", common.AutocompleteFormat(autoUpdateOutput{}))
}