Skip to content

Favor --show-token over --token for whoami - #11150

Merged
openshift-bot merged 1 commit into
openshift:masterfrom
liggitt:deprecate-whoami-token
Sep 30, 2016
Merged

openshift-bot merged 1 commit into
openshift:masterfrom
liggitt:deprecate-whoami-token

Conversation

@liggitt

@liggitt liggitt commented Sep 29, 2016 •

Copy link
Copy Markdown
Contributor

I badly want to be able to do oc whoami --token=<some-token>, but we made that the long form of oc whoami -t instead.

Deprecate --token and --context in favor of --show-token and --show-context, so in a release we can switch back to using those for building the client

@liggitt

liggitt commented Sep 29, 2016

Copy link
Copy Markdown
Contributor Author

@deads2k @smarterclayton @fabianofranz

will open a doc PR to sweep in favor of the short flags if this meets with approval

@smarterclayton

Copy link
Copy Markdown
Contributor

I really hope no one has baked this into their CI flows.

@liggitt

liggitt commented Sep 29, 2016

Copy link
Copy Markdown
Contributor Author

[test]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 2587916

@openshift-bot

Copy link
Copy Markdown
Contributor

@deads2k

deads2k commented Sep 29, 2016

Copy link
Copy Markdown
Contributor

I'm strongly in favor of this, even though it will be breaking.

@smarterclayton

Copy link
Copy Markdown
Contributor

Because -t is common use I'm ok with redefining "--token" but leaving "-t" unchanged.

@liggitt

liggitt commented Sep 29, 2016

Copy link
Copy Markdown
Contributor Author

sounds good. this PR hides and marks as deprecated --token and --context. I'll queue up removing the overridden behavior in 1.5
[merge]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 2587916

@fabianofranz

Copy link
Copy Markdown
Contributor

One more use case for my idea of boolean kinda string flag type. :)

--token
--token=<some-token>

@fabianofranz

Copy link
Copy Markdown
Contributor

@openshift/cli-review

@fabianofranz

Copy link
Copy Markdown
Contributor

Needs release notes.

@openshift-bot

openshift-bot commented Sep 30, 2016 •

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9528/) (Image: devenv-rhel7_5103)

@openshift-bot
openshift-bot merged commit 25aad16 into openshift:master Sep 30, 2016
@liggitt
liggitt deleted the deprecate-whoami-token branch October 3, 2016 17:01
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