From 8c07fb6bfacbd0ea82f64158ac9fc8e3daa12c49 Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Sun, 13 Oct 2024 07:56:21 -0600 Subject: [PATCH] fix: document pushing files with colon in name (#1508) Signed-off-by: Terry Howe --- cmd/oras/root/push.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/oras/root/push.go b/cmd/oras/root/push.go index 5fd59f81d..93c7b3c5d 100644 --- a/cmd/oras/root/push.go +++ b/cmd/oras/root/push.go @@ -70,6 +70,9 @@ Example - Push file "hi.txt" with the custom media type "application/vnd.me.hi": Example - Push multiple files with different media types: oras push localhost:5000/hello:v1 hi.txt:application/vnd.me.hi bye.txt:application/vnd.me.bye +Example - Push file with colon in name "hi:txt" with the default media type: + oras push localhost:5000/hello:v1 hi:txt: + Example - Push file "hi.txt" with artifact type "application/vnd.example+type": oras push --artifact-type application/vnd.example+type localhost:5000/hello:v1 hi.txt