Skip to content
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

suggest exposable resources oc expose #10843

Conversation

juanvallejo
Copy link
Contributor

@juanvallejo juanvallejo commented Sep 7, 2016

Related Trello Card:
https://trello.com/c/04lpfTQR/451-8-cli-improved-flows-and-ux-in-the-cli-evg-ux-p3

This patch updates oc expose output (with no resources provided)
to a kcmdutil.UsageError so that a suggestion to use oc expose -h
is displayed.

Before

$ oc expose

error: you must provide one or more resources by argument or filename (.json|.yaml|.yml|stdin)
After
error: You must provide one or more resources by argument or filename.
Example resource specifications include:
   '-f rsrc.yaml'
   '--filename=rsrc.json'
   'pods my-pod'
   'services'
See 'oc expose -h' for help and examples.

cc @openshift/cli-review

@fabianofranz
Copy link
Member

Looks good, but I think it's still valid to print the accepted extensions. E.g.

error: You must provide one or more resources by argument or filename (.json|.yaml|.yml|stdin).
Example resource specifications include:
   '-f rsrc.yaml'
   '--filename=rsrc.json'
   'pods my-pod'
   'services'
See 'oc expose -h' for help and examples.

@juanvallejo juanvallejo force-pushed the jvallejo_suggest-exposable-resources-oc-expose branch from bda0645 to 3bba62b Compare September 9, 2016 16:26
@juanvallejo
Copy link
Contributor Author

@fabianofranz

Looks good, but I think it's still valid to print the accepted extensions

Done!

@juanvallejo
Copy link
Contributor Author

[test]

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 16, 2016
Related Trello Card:
https://trello.com/c/04lpfTQR/451-8-cli-improved-flows-and-ux-in-the-cli-evg-ux-p3

This patch updates `oc expose` output (with no resources provided)
to a `kcmdutil.UsageError` so that a suggestion to use `oc  expose -h`
is displayed.
@juanvallejo juanvallejo force-pushed the jvallejo_suggest-exposable-resources-oc-expose branch from 3bba62b to 095dc9c Compare September 21, 2016 20:34
@openshift-bot openshift-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 21, 2016
@juanvallejo
Copy link
Contributor Author

conformance test flaked on #9548 re[test]

@fabianofranz
Copy link
Member

[merge]

@juanvallejo
Copy link
Contributor Author

juanvallejo commented Sep 26, 2016

conformance test flaked on #9548 re[test]

@juanvallejo
Copy link
Contributor Author

juanvallejo commented Sep 26, 2016

conformance test flaked on #9548 re[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 095dc9c

@fabianofranz
Copy link
Member

re[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 095dc9c

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/9302/)

@openshift-bot
Copy link
Contributor

openshift-bot commented Sep 27, 2016

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

@openshift-bot openshift-bot merged commit 41953d8 into openshift:master Sep 27, 2016
@juanvallejo juanvallejo deleted the jvallejo_suggest-exposable-resources-oc-expose branch September 27, 2016 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants