-
Notifications
You must be signed in to change notification settings - Fork 86
Merging of subcommands #103
Conversation
2c7d8d8 to
fab1765
Compare
|
i think conceptually this SGTM |
|
SGTM. need rebase. |
90d1ef6 to
1f79983
Compare
|
@vbatts @xiekeyang @coolljt0725 I think this change will be better. PTAL |
man/oci-image-tool.1.md
Outdated
|
|
||
| # COMMANDS | ||
| **validate** | ||
| Validate one or more image files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is an "image file"?
man/oci-image-tool.1.md
Outdated
| See **oci-image-tool-validate**(1) for full documentation on the **validate** command. | ||
|
|
||
| **unpack** | ||
| Unpack an image or image source layout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is an "image" or "image source layout"?
man/oci-image-tool.1.md
Outdated
| Unpack an image or image source layout | ||
| See **oci-image-tool-unpack**(1) for full documentation on the **unpack** command. | ||
|
|
||
| **bundleCreate** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's avoid camelCase in our command designs. This should employ <object> <verb> or use dashes bundle-create.
Signed-off-by: zhouhao <[email protected]>
| var unpackCommand = cli.Command{ | ||
| Name: "unpack", | ||
| Usage: "Unpack an image or image source layout", | ||
| Action: unpackHandle, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unpackHandler.
| Validate the given file(s) against the OCI image specification | ||
| See **oci-image-tool-validate**(1) for full documentation on the **validate** command. | ||
|
|
||
| **unpack** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This language still doesn't make the different between "unpack" and "create" clear.
|
@q384566678 @vbatts @stevvooe This PR call At least we should import |
This is some idea about #96
Fixes #96
Signed-off-by: zhouhao [email protected]