pub fn add_registry(handle_or_url: &str) -> Result<()>Expand description
Add a new registry by handle or URL.
When a built-in registry handle is given (e.g. docker), the registry is
resolved from the pre-defined YAML and its metadata is used. A local
directory or an HTTP URL is also accepted. The default keyword resolves to
the built-in set: true registry.
ยงErrors
Returns an error if the directory path is invalid or if the configuration cannot be updated.