Skip to content

Conversation

@zhouhao3
Copy link

@zhouhao3 zhouhao3 commented Jan 6, 2017

This is some idea about #96

Fixes #96
Signed-off-by: zhouhao [email protected]

@zhouhao3 zhouhao3 force-pushed the main-test branch 4 times, most recently from 2c7d8d8 to fab1765 Compare January 6, 2017 05:53
@vbatts
Copy link
Member

vbatts commented Feb 8, 2017

i think conceptually this SGTM

@xiekeyang
Copy link
Contributor

SGTM. need rebase.

@zhouhao3 zhouhao3 force-pushed the main-test branch 5 times, most recently from 90d1ef6 to 1f79983 Compare March 13, 2017 10:20
@zhouhao3
Copy link
Author

zhouhao3 commented Mar 13, 2017

@vbatts @xiekeyang @coolljt0725 I think this change will be better. PTAL

@xiekeyang
Copy link
Contributor

xiekeyang commented Mar 13, 2017

@q384566678 It seems that log-level is in progress on #46 . In that patch, @stevvooe suggest that we should not use log-level, instead to use debug mode. And you seems not replace fmt.Print by logrus with context. So I think you might had better to remove this stuff from this patch.


# COMMANDS
**validate**
Validate one or more image files
Copy link
Contributor

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"?

See **oci-image-tool-validate**(1) for full documentation on the **validate** command.

**unpack**
Unpack an image or image source layout
Copy link
Contributor

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"?

Unpack an image or image source layout
See **oci-image-tool-unpack**(1) for full documentation on the **unpack** command.

**bundleCreate**
Copy link
Contributor

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,
Copy link
Contributor

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**
Copy link
Contributor

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.

@stevvooe
Copy link
Contributor

stevvooe commented Mar 15, 2017

LGTM

Please follow up on the issues with create / unpack.

Approved with PullApprove

@vbatts
Copy link
Member

vbatts commented Mar 15, 2017

LGTM

Approved with PullApprove

@vbatts vbatts merged commit b177811 into opencontainers:master Mar 15, 2017
@xiekeyang
Copy link
Contributor

@q384566678 @vbatts @stevvooe This PR call logrus function, without introduce it to vendor. It leads build fail on make tool:

$ make tool 
go build -o oci-image-tool ./cmd/oci-image-tool
cmd/oci-image-tool/main.go:21:2: cannot find package "github.com/Sirupsen/logrus" in any of:

At least we should import logrus to glide.yaml and then make update-deps, the package can be generated in vendor.
Please take a review, is it Right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants