restructure cli copy messages to print descriptor information

This commit is contained in:
Josh Wolf
2021-12-09 11:09:50 -07:00
parent cd93d7aaea
commit 7eabbdc0aa
3 changed files with 15 additions and 6 deletions

View File

@@ -66,6 +66,7 @@ func NewTempRegistry(ctx context.Context, root string) *tmpRegistryServer {
}
}
// Registry returns the URL of the server without the protocol, suitable for content references
func (t *tmpRegistryServer) Registry() string {
return strings.Replace(t.Server.URL, "http://", "", 1)
}