Skip to content

Use spf13/cobra for docker push and docker pull#23256

Merged
LK4D4 merged 3 commits intomoby:masterfrom
vdemeester:migrate-pull-push-to-cobra
Jun 13, 2016
Merged

Use spf13/cobra for docker push and docker pull#23256
LK4D4 merged 3 commits intomoby:masterfrom
vdemeester:migrate-pull-push-to-cobra

Conversation

@vdemeester
Copy link
Copy Markdown
Member

Moves image command pull and push to api/client/image/pull.go and api/client/image/push.go and use cobra 🐍.

/cc @dnephin @thaJeztah @LK4D4 @cpuguy83

🐸

Signed-off-by: Vincent Demeester [email protected]

@vdemeester vdemeester added the area/cli Client label Jun 4, 2016
@vdemeester vdemeester added this to the 1.12.0 milestone Jun 4, 2016
@vdemeester vdemeester force-pushed the migrate-pull-push-to-cobra branch 2 times, most recently from 0489b1a to 58e4252 Compare June 4, 2016 14:41
@dnephin dnephin mentioned this pull request Jun 4, 2016
43 tasks
Comment thread api/client/pull.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This method (and the similar ImagePushPrivileged() are only used by one function trustedPush/pull , which is also used in only a single file (this one).

What do you think about either moving trustedPush/Pull into the new api/client/image package (which would require making the target struct exported), or alternatively moving ImagePullPrivileged to api/client/trust.go so we can remove this old module.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@dnephin yeah I was wondering about that, same goes for push.go. I think I'll move it to api/client/trust.go for now 😇

@vdemeester vdemeester force-pushed the migrate-pull-push-to-cobra branch 2 times, most recently from 803f35c to 01a6ded Compare June 4, 2016 17:15
Comment thread api/client/image/pull.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

unnecessary blank line? 😄

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

maybe 😹

@vdemeester vdemeester force-pushed the migrate-pull-push-to-cobra branch 7 times, most recently from ee0b4ce to 1825d81 Compare June 7, 2016 16:07
Comment thread cli/usage.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove "push" here as well

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh damn, I messed up on a rebase 😓

@vdemeester vdemeester force-pushed the migrate-pull-push-to-cobra branch from 1825d81 to ef9c34a Compare June 7, 2016 19:10
@cpuguy83
Copy link
Copy Markdown
Member

cpuguy83 commented Jun 7, 2016

LGTM

@dmcgowan
Copy link
Copy Markdown
Member

dmcgowan commented Jun 7, 2016

LGTM and needs rebase

@vdemeester vdemeester force-pushed the migrate-pull-push-to-cobra branch from ef9c34a to de4e195 Compare June 7, 2016 22:01
Signed-off-by: Vincent Demeester <[email protected]>
Signed-off-by: Vincent Demeester <[email protected]>
@vdemeester vdemeester force-pushed the migrate-pull-push-to-cobra branch from de4e195 to ad4e20c Compare June 10, 2016 10:07
@icecrime icecrime modified the milestone: 1.12.0 Jun 13, 2016
@LK4D4
Copy link
Copy Markdown
Contributor

LK4D4 commented Jun 13, 2016

LGTM

@LK4D4 LK4D4 merged commit f0193e2 into moby:master Jun 13, 2016
@vdemeester vdemeester deleted the migrate-pull-push-to-cobra branch June 13, 2016 21:16
@thaJeztah thaJeztah added this to the 1.12.0 milestone Jan 17, 2017
dnephin pushed a commit to dnephin/docker that referenced this pull request Apr 17, 2017
Use spf13/cobra for docker push and docker pull
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.

9 participants