985b58e7e1
The CLI.RegistryClient method is a shallow wrapper around registryclient.NewRegistryClient but due to its signature resulted in various dependencies becoming a dependency of the "command" package. Consequence of this was that cli-plugins, which need the cli/command package, would also get those dependencies. This patch inlines the code where needed, skipping the wrapper Signed-off-by: Sebastiaan van Stijn <github@gone.nl>