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

bugfix: modify volume usage #132

Merged
merged 1 commit into from
Nov 21, 2017

Conversation

rudyfly
Copy link
Collaborator

@rudyfly rudyfly commented Nov 21, 2017

1.Describe what this PR did
Modify volume usage.

2.Does this pull request fix one issue?

fixes #128
fixes #129

3.Describe how you did it

4.Describe how to verify it

5.Special notes for reviews

Signed-off-by: Rudy Zhang rudyflyzhang@gmail.com

@pouchrobot pouchrobot added areas/storage kind/bug This is bug report for project size/S labels Nov 21, 2017
cli/volume.go Outdated
@@ -157,7 +157,7 @@ func (v *VolumeRemoveCommand) Init(c *Cli) {
v.cli = c

v.cmd = &cobra.Command{
Use: "remove [volume]",
Use: "remove <volume name>",
Aliases: []string{"rm"},
Short: "Remove pouch volumes",
Args: cobra.MinimumNArgs(1),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to more careful with the command args. And consistent with Use and Args.
You said Remove pouch volumes, does this support removing multi volumes?
If that the args cobra.MinimumNArgs(1) is correct, otherwise inconsistency happens.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should support removing multi volumes, just now not support.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, PTAL @allencloud

Modify volume usage.

Signed-off-by: Rudy Zhang <rudyflyzhang@gmail.com>
@allencloud
Copy link
Collaborator

LGTM

@allencloud allencloud merged commit d66193a into AliyunContainerService:master Nov 21, 2017
@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label Nov 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
areas/storage kind/bug This is bug report for project LGTM one maintainer or community participant agrees to merge the pull reuqest. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] usage of "pouch volume rm" should be changed [bug] usage of "pouch volume create" is not right
3 participants