Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix description typos #591

Merged
merged 1 commit into from
Sep 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: fix description typos
Signed-off-by: Juncheng Zhu <junczhu@microsoft.com>
  • Loading branch information
junczhu committed Sep 22, 2022
commit f33e5821ae3a838299a791aedad4f139865bd70d
4 changes: 2 additions & 2 deletions cmd/oras/manifest/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func deleteCmd() *cobra.Command {

** This command is in preview and under development. **

Example - Delete a manifest tagged with 'latest' from repository 'locahost:5000/hello':
Example - Delete a manifest tagged with 'latest' from repository 'localhost:5000/hello':
oras manifest delete localhost:5000/hello:latest

Example - Delete a manifest without prompting confirmation:
Expand All @@ -54,7 +54,7 @@ Example - Delete a manifest without prompting confirmation:
Example - Delete a manifest and print its descriptor:
oras manifest delete --descriptor localhost:5000/hello:latest

Example - Delete a manifest by digest 'sha256:99e4703fbf30916f549cd6bfa9cdbab614b5392fbe64fdee971359a77073cdf9' from repository 'locahost:5000/hello':
Example - Delete a manifest by digest 'sha256:99e4703fbf30916f549cd6bfa9cdbab614b5392fbe64fdee971359a77073cdf9' from repository 'localhost:5000/hello':
oras manifest delete localhost:5000/hello@sha:99e4703fbf30916f549cd6bfa9cdbab614b5392fbe64fdee971359a77073cdf9
`,
Args: cobra.ExactArgs(1),
Expand Down
6 changes: 3 additions & 3 deletions cmd/oras/manifest/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func pushCmd() *cobra.Command {

** This command is in preview and under development. **

Example - Push a manifest to repository 'locahost:5000/hello' and tag with 'latest':
Example - Push a manifest to repository 'localhost:5000/hello' and tag with 'latest':
oras manifest push localhost:5000/hello:latest manifest.json

Example - Push a manifest with content read from stdin:
Expand All @@ -58,10 +58,10 @@ Example - Push a manifest with content read from stdin:
Example - Push a manifest and output its descriptor:
oras manifest push --descriptor localhost:5000/hello:latest manifest.json

Example - Push a manifest to repository 'locahost:5000/hello' and output the prettified descriptor:
Example - Push a manifest to repository 'localhost:5000/hello' and output the prettified descriptor:
oras manifest push --descriptor --pretty localhost:5000/hello manifest.json

Example - Push a manifest with specified media type to repository 'locahost:5000/hello' and tag with 'latest':
Example - Push a manifest with specified media type to repository 'localhost:5000/hello' and tag with 'latest':
oras manifest push --media-type application/vnd.cncf.oras.artifact.manifest.v1+json localhost:5000/hello:latest oras_manifest.json
`,
Args: cobra.ExactArgs(2),
Expand Down
8 changes: 4 additions & 4 deletions cmd/oras/tag/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ func TagCmd() *cobra.Command {

** This command is in preview and under development. **

Example - Tag the manifest 'v1.0.1' in 'locahost:5000/hello' to 'v1.0.2':
Example - Tag the manifest 'v1.0.1' in 'localhost:5000/hello' to 'v1.0.2':
oras tag localhost:5000/hello:v1.0.1 v1.0.2

Example - Tag the manifest with digest sha256:9463e0d192846bc994279417b50114606712d516aab45f4d8b31cbc6e46aad71 to 'v1.0.2'
oras tag localhost:5000/hello@sha256:9463e0d192846bc994279417b50114606712d516aab45f4d8b31cbc6e46aad71 v1.0.2

Example - Tag the manifest 'v1.0.1' in 'locahost:5000/hello' to 'v1.0.2', 'latest'
orast tag localhost:5000/hello:v1.0.1 v1.0.2 latest
Example - Tag the manifest 'v1.0.1' in 'localhost:5000/hello' to 'v1.0.2', 'latest'
oras tag localhost:5000/hello:v1.0.1 v1.0.2 latest

Example - Tag the manifest 'v1.0.1' in 'locahost:5000/hello' to 'v1.0.2' 'latest' with the custom concurrency number of 1:
Example - Tag the manifest 'v1.0.1' in 'localhost:5000/hello' to 'v1.0.2' 'latest' with the custom concurrency number of 1:
oras tag --concurrency 1 localhost:5000/hello:v1.0.1 v1.0.2 latest
`,
Args: cobra.MinimumNArgs(2),
Expand Down