-
Notifications
You must be signed in to change notification settings - Fork 571
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
Refactor container prune
and rename
command flagging process
#1994
Conversation
Part of #1680 |
Please split this into 2 PRs. One PR for one thing. |
Thank you very much for your guidance. This is a simple and minor change. Of course, if it does not conform to the community rules, I will split it later. |
pkg/cmd/container/prune.go
Outdated
for _, id := range deleted { | ||
fmt.Fprintln(options.Stdout, id) | ||
} | ||
fmt.Fprintln(options.Stdout, "") |
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.
nit: this can be fmt.Fprintln(options.Stdout, strings.Join(deleted, "\n")
pkg/cmd/container/rename.go
Outdated
n, err := walker.Walk(ctx, containerID) | ||
if err != nil { | ||
return err | ||
} else if n == 0 { | ||
return fmt.Errorf("no such container %s", containerID) | ||
} |
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.
nit:
if n, err := walker.Walk(ctx, containerID); err != nil {
return err
} else if n == 0 {
return fmt.Errorf("no such container %s", containerID)
}
Please squash your commits. |
Signed-off-by: rkonfj <rkonfj@gmail.com>
@suyanhanx @djdongjin can we merge this ? |
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.
LGTM, thanks
LGTM. |
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.
Thanks
Refactor container
prune
andrename
command flagging processSigned-off-by: rkonfj rkonfj@gmail.com