Skip to content

Commit 38d85a2

Browse files
author
lei
committed
Rename oci-image-tool create to oci-image-tool create-bundle
`oci-image-tool create` is confusing, rename it to `create-bundle`, and we may have `create-layer` in future which infligh in opencontainers#8, and we may have `create-image` in future. Signed-off-by: Lei Jitang <[email protected]>
1 parent da35308 commit 38d85a2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ all: tool man
3535
.PHONY: man
3636
man:
3737
go-md2man -in "man/oci-image-tool.1.md" -out "oci-image-tool.1"
38-
go-md2man -in "man/oci-image-tool-create.1.md" -out "oci-image-tool-create.1"
38+
go-md2man -in "man/oci-image-tool-create-bundle.1.md" -out "oci-image-tool-create-bundle.1"
3939
go-md2man -in "man/oci-image-tool-unpack.1.md" -out "oci-image-tool-unpack.1"
4040
go-md2man -in "man/oci-image-tool-validate.1.md" -out "oci-image-tool-validate.1"
4141

cmd/oci-image-tool/create.go renamed to cmd/oci-image-tool/bundle.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func createHandle(context *cli.Context) error {
7676
}
7777

7878
var createCommand = cli.Command{
79-
Name: "create",
79+
Name: "create-bundle",
8080
Usage: "Create an OCI image runtime bundle",
8181
Action: createHandle,
8282
Flags: []cli.Flag{

man/oci-image-tool-create.1.md renamed to man/oci-image-tool-create-bundle.1.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
% OCI Community
33
% JULY 2016
44
# NAME
5-
oci-image-tool create \- Create an OCI runtime bundle
5+
oci-image-tool create-bundle \- Create an OCI runtime bundle
66

77
# SYNOPSIS
8-
**oci-image-tool create** [src] [dest] [OPTIONS]
8+
**oci-image-tool create-bundle** [src] [dest] [OPTIONS]
99

1010
# DESCRIPTION
11-
`oci-image-tool create` validates an application/vnd.oci.image.manifest.v1+json and unpacks its layered filesystem to `dest/rootfs`, although the target directory is configurable with `--rootfs`. See **oci-image-tool unpack**(1) for more details on this process.
11+
`oci-image-tool createi-bundle` validates an application/vnd.oci.image.manifest.v1+json and unpacks its layered filesystem to `dest/rootfs`, although the target directory is configurable with `--rootfs`. See **oci-image-tool unpack**(1) for more details on this process.
1212

1313
Also translates the referenced config from application/vnd.oci.image.config.v1+json to a
1414
runtime-spec-compatible `dest/config.json`.
@@ -35,7 +35,7 @@ runtime-spec-compatible `dest/config.json`.
3535
```
3636
$ skopeo copy docker://busybox oci:busybox-oci
3737
$ mkdir busybox-bundle
38-
$ oci-image-tool create --ref latest busybox-oci busybox-bundle
38+
$ oci-image-tool create-bundle --ref latest busybox-oci busybox-bundle
3939
$ cd busybox-bundle && sudo runc run busybox
4040
[...]
4141
```

0 commit comments

Comments
 (0)