Skip to content

Use spf13/cobra for docker login and docker logout#23265

Merged
LK4D4 merged 1 commit intomoby:masterfrom
vdemeester:migrate-login-logout-to-cobra
Jun 13, 2016
Merged

Use spf13/cobra for docker login and docker logout#23265
LK4D4 merged 1 commit intomoby:masterfrom
vdemeester:migrate-login-logout-to-cobra

Conversation

@vdemeester
Copy link
Copy Markdown
Member

Moves registry command login and logout to api/client/registry/login.go and api/client/registry/logout.go and use cobra 🐍.

Also moved some utils method in better files.

/cc @dnephin @thaJeztah @LK4D4 @cpuguy83

🐸

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

@vdemeester vdemeester added the area/cli Client label Jun 5, 2016
@vdemeester vdemeester added this to the 1.12.0 milestone Jun 5, 2016
@vdemeester vdemeester force-pushed the migrate-login-logout-to-cobra branch 3 times, most recently from e77f0b8 to ad98900 Compare June 5, 2016 14:44
@dnephin dnephin mentioned this pull request Jun 5, 2016
43 tasks
Comment thread cli/required.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.

The parameter should probably be max otherwise it's kind of confusing

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 you're absolutely right 😓
/me was in robot mode I guess 😅

@vdemeester vdemeester force-pushed the migrate-login-logout-to-cobra branch 7 times, most recently from 26f804b to 68294a4 Compare June 6, 2016 12:01
@mlaventure
Copy link
Copy Markdown
Contributor

This already needs a rebase unfortunately @vdemeester

@vdemeester vdemeester force-pushed the migrate-login-logout-to-cobra branch from 68294a4 to 36624c9 Compare June 7, 2016 09:39
@dmcgowan
Copy link
Copy Markdown
Member

dmcgowan commented Jun 7, 2016

LGTM

@thaJeztah
Copy link
Copy Markdown
Member

LGTM

ping @runcom PTAL as well

@thaJeztah
Copy link
Copy Markdown
Member

also, I think the commits should be squashed, because some changes are in the wrong commit

@vdemeester vdemeester force-pushed the migrate-login-logout-to-cobra branch 2 times, most recently from 0f27e87 to 94ef8fe Compare June 7, 2016 22:02
@runcom
Copy link
Copy Markdown
Member

runcom commented Jun 10, 2016

LGTM but this needs a rebase :(

@vdemeester vdemeester force-pushed the migrate-login-logout-to-cobra branch from 94ef8fe to 50ba007 Compare June 10, 2016 10:01
Also moves some common stuff around :
- `api/client/registry.go` for registry related
method (`ElectAuthServer`, …)
- `api/client/credentials.go` to interact with credentials

Migrate logout command to cobra

Signed-off-by: Vincent Demeester <[email protected]>
@vdemeester vdemeester force-pushed the migrate-login-logout-to-cobra branch from 50ba007 to baf4677 Compare June 10, 2016 10:04
@icecrime icecrime removed this from the 1.12.0 milestone Jun 13, 2016
@icecrime icecrime removed this from the 1.12.0 milestone Jun 13, 2016
@LK4D4
Copy link
Copy Markdown
Contributor

LK4D4 commented Jun 13, 2016

LGTM

@LK4D4 LK4D4 merged commit a502158 into moby:master Jun 13, 2016
@vdemeester vdemeester deleted the migrate-login-logout-to-cobra branch June 13, 2016 21:16
@thaJeztah thaJeztah added this to the 1.12.0 milestone Jun 13, 2016
dnephin pushed a commit to dnephin/docker that referenced this pull request Apr 17, 2017
…-cobra

Use spf13/cobra for docker login and docker logout
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