diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-04-29 11:21:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 11:21:47 +0200 |
commit | 3e912f711b875b40709075e22be3f94e21e1639a (patch) | |
tree | 535357ded8c2482fabd8a9ccda5cdd70bb94867f /cmd/podman/common/inspect.go | |
parent | 62a4befe040944c7c4883fed6a70f691aadb440c (diff) | |
parent | 8700c2fd03c29fb898f93e71618d91e2470236f6 (diff) | |
download | podman-3e912f711b875b40709075e22be3f94e21e1639a.tar.gz podman-3e912f711b875b40709075e22be3f94e21e1639a.tar.bz2 podman-3e912f711b875b40709075e22be3f94e21e1639a.zip |
Merge pull request #6022 from vrothberg/enable-inspect-tests
enable inspect tests
Diffstat (limited to 'cmd/podman/common/inspect.go')
-rw-r--r-- | cmd/podman/common/inspect.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/cmd/podman/common/inspect.go b/cmd/podman/common/inspect.go deleted file mode 100644 index dfc6fe679..000000000 --- a/cmd/podman/common/inspect.go +++ /dev/null @@ -1,18 +0,0 @@ -package common - -import ( - "github.com/containers/libpod/pkg/domain/entities" - "github.com/spf13/cobra" -) - -// AddInspectFlagSet takes a command and adds the inspect flags and returns an InspectOptions object -// Since this cannot live in `package main` it lives here until a better home is found -func AddInspectFlagSet(cmd *cobra.Command) *entities.InspectOptions { - opts := entities.InspectOptions{} - - flags := cmd.Flags() - flags.BoolVarP(&opts.Size, "size", "s", false, "Display total file size") - flags.StringVarP(&opts.Format, "format", "f", "", "Change the output format to a Go template") - - return &opts -} |