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

Don't show the project DisplayName when short #12274

Merged
merged 1 commit into from
Dec 16, 2016
Merged

Don't show the project DisplayName when short #12274

merged 1 commit into from
Dec 16, 2016

Conversation

chmouel
Copy link
Member

@chmouel chmouel commented Dec 15, 2016

When using the short option, show ony the project name without the
DisplayName to stay consistent for scripting.

Fixes #12267

@mfojtik
Copy link
Contributor

mfojtik commented Dec 15, 2016

LGTM

@openshift/cli-review

@jupierce
Copy link
Contributor

I would also expect this output to be suppressed when -q is used.
https://github.com/chmouel/origin/blob/a379e3e7515b6ca9f91ade4583984d8ce3b2c191/pkg/cmd/cli/cmd/projects.go#L144

@chmouel
Copy link
Member Author

chmouel commented Dec 15, 2016

@jupierce thanks, I have updated my commit

case 1:
if o.DisplayShort {
msg += fmt.Sprintf("%s", api.DisplayNameAndNameForProject(&projects[0]))
msg += fmt.Sprintf("%s", &projects[0].Name)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit, but & is not needed here, it can just be projects[0].name

@juanvallejo
Copy link
Contributor

One nit, but otherwise lgtm
@fabianofranz

When using the short option, show ony the project name without the
DisplayName to stay consistent for scripting.

Don't display msg about non membership of a project as well when using
the short option to project.

Fixes #12267
@fabianofranz
Copy link
Member

[test]

@chmouel
Copy link
Member Author

chmouel commented Dec 15, 2016

@juanvallejo yep thanks, i have updated the commit.

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 9baf430

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12416/) (Base Commit: da967d5)

@chmouel
Copy link
Member Author

chmouel commented Dec 15, 2016 via email

@fabianofranz
Copy link
Member

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 9baf430

@openshift-bot
Copy link
Contributor

openshift-bot commented Dec 16, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12441/) (Base Commit: fb483eb) (Image: devenv-rhel7_5554)

@openshift-bot openshift-bot merged commit 4cb1ce3 into openshift:master Dec 16, 2016
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.

6 participants