From 1d7cb7cc48d06631e2bdfd0e25eeccc8e87b042f Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Mon, 23 Mar 2020 09:04:31 -0700 Subject: V2 podman images/image list * Updated entities to support flags/options * Updated bindings caused by entities changes * Removed handlers.ImageSummary in favor of entities.ImageSummary * Introduced StringSet() container object to simply error checking Signed-off-by: Jhon Honce --- cmd/podmanV2/registry/registry.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cmd/podmanV2/registry') diff --git a/cmd/podmanV2/registry/registry.go b/cmd/podmanV2/registry/registry.go index 9c12b2456..f0650a7cf 100644 --- a/cmd/podmanV2/registry/registry.go +++ b/cmd/podmanV2/registry/registry.go @@ -21,6 +21,7 @@ var ( imageEngine entities.ImageEngine containerEngine entities.ContainerEngine + cliCtx context.Context EngineOptions entities.EngineOptions @@ -125,3 +126,10 @@ func Options(cmd *cobra.Command) (*entities.EngineOptions, error) { } return nil, nil } + +func GetContext() context.Context { + if cliCtx == nil { + cliCtx = context.TODO() + } + return cliCtx +} -- cgit v1.2.3-54-g00ecf