Skip to content

Use spf13/cobra for docker port#23286

Merged
vdemeester merged 1 commit intomoby:masterfrom
yongtang:23211-spf13-cobra-port
Jun 6, 2016
Merged

Use spf13/cobra for docker port#23286
vdemeester merged 1 commit intomoby:masterfrom
yongtang:23211-spf13-cobra-port

Conversation

@yongtang
Copy link
Copy Markdown
Member

@yongtang yongtang commented Jun 6, 2016

This fix is part of the effort to convert commands to spf13/cobra #23211.

Thif fix coverted command docker port to use spf13/cobra

Note: As part of this fix, a new function

RequiresMinMaxArgs(min int, max int)

has been added in cli/required.go. This function restrict the args to be at least min and at most max.

Signed-off-by: Yong Tang [email protected]

@vdemeester
Copy link
Copy Markdown
Member

LGTM 🐮
Needs a rebase though😇

This fix is part of the effort to convert commands to spf13/cobra moby#23211.

Thif fix coverted command `docker port` to use spf13/cobra

Note: As part of this fix, a new function `RequiresMinMaxArgs(min int, max int)`
has been added in cli/required.go. This function restrict the args
to be at least min and at most max.

Signed-off-by: Yong Tang <[email protected]>
@yongtang yongtang force-pushed the 23211-spf13-cobra-port branch from dad784b to d5971c2 Compare June 6, 2016 12:32
@yongtang
Copy link
Copy Markdown
Member Author

yongtang commented Jun 6, 2016

Thanks @vdemeester the PR has been rebased.

@thaJeztah
Copy link
Copy Markdown
Member

LGTM, thanks @yongtang

@vdemeester vdemeester merged commit 52da20b into moby:master Jun 6, 2016
@yongtang yongtang deleted the 23211-spf13-cobra-port branch June 6, 2016 19:26
dnephin pushed a commit to dnephin/docker that referenced this pull request Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants