list packages needs cluster connectivity but list bundles doesn't since it will follow it's own way cloning the certified repo. So cluster connectivity shouldn't be assumed at the list level but at the inner level where packages actually are.
My proposal is to instantiate and test clients where they will actually be used. So PreRunE or some other function would go well in list_packages.go instead of list creating client and scheme and passing them to the command.
list packages needs cluster connectivity but list bundles doesn't since it will follow it's own way cloning the certified repo. So cluster connectivity shouldn't be assumed at the list level but at the inner level where packages actually are.
My proposal is to instantiate and test clients where they will actually be used. So PreRunE or some other function would go well in list_packages.go instead of list creating client and scheme and passing them to the command.