summaryrefslogtreecommitdiff
path: root/cmd/podman/diff/diff.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-25 15:07:45 -0400
committerGitHub <noreply@github.com>2022-05-25 15:07:45 -0400
commite11feb230923a169c1e235552afa2f7bec7f0fff (patch)
treea722f27f8d4963a7989f184677cbd4aa76e2bf1b /cmd/podman/diff/diff.go
parent819e5bcb943c6f604fdc65be1c0387055e0a9f20 (diff)
parent338f0123706f31721e89c2e6223c7c493b577dc7 (diff)
downloadpodman-e11feb230923a169c1e235552afa2f7bec7f0fff.tar.gz
podman-e11feb230923a169c1e235552afa2f7bec7f0fff.tar.bz2
podman-e11feb230923a169c1e235552afa2f7bec7f0fff.zip
Merge pull request #14364 from jwhonce/wip/diff_todo
Remove unused archive flag from diff commands
Diffstat (limited to 'cmd/podman/diff/diff.go')
-rw-r--r--cmd/podman/diff/diff.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/diff/diff.go b/cmd/podman/diff/diff.go
index a26502de9..15c55852a 100644
--- a/cmd/podman/diff/diff.go
+++ b/cmd/podman/diff/diff.go
@@ -13,7 +13,7 @@ import (
"github.com/spf13/cobra"
)
-func Diff(cmd *cobra.Command, args []string, options entities.DiffOptions) error {
+func Diff(_ *cobra.Command, args []string, options entities.DiffOptions) error {
results, err := registry.ContainerEngine().Diff(registry.GetContext(), args, options)
if err != nil {
return err
@@ -63,7 +63,7 @@ func changesToTable(diffs *entities.DiffReport) error {
return nil
}
-// IDOrLatestArgs used to validate a nameOrId was provided or the "--latest" flag
+// ValidateContainerDiffArgs used to validate a nameOrId was provided or the "--latest" flag
func ValidateContainerDiffArgs(cmd *cobra.Command, args []string) error {
given, _ := cmd.Flags().GetBool("latest")
if len(args) > 0 && !given {