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

[Console] Show aliases in command description instead of in different lines in application description #18790

Closed
wants to merge 4 commits into from

Conversation

juanmirod
Copy link
Contributor

@juanmirod juanmirod commented May 15, 2016

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #18351
License MIT
Doc PR

This PR is a suggestion about the bug referenced in ticket 18351. The problem is that aliases create new lines with identical descriptions in the application description, it is suggested to show the aliases in the command description.

I had to modify one application fixture to meet this new behaviour and make the tests pass, but I don't think that a new application fixture is needed to test this having the application fixture 2.

Comments are welcome, this is my first PR in Symfony so if I need to meet any more requirements to make it correct to merge just tell me please.

$text = '';
$aliases = $command->getAliases();

if(count($aliases) > 0) {
Copy link
Member

Choose a reason for hiding this comment

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

if ($aliases) {

@nicolas-grekas
Copy link
Member

👍 as new feature on master, after comments are fixed

@nicolas-grekas nicolas-grekas changed the title Ticket 18351- Show aliases in command description instead of in different lines in application description. [Console] Show aliases in command description instead of in different lines in application description May 19, 2016
@juanmirod
Copy link
Contributor Author

Hi @nicolas-grekas thanks for the review, I think I amended all your comments.

@GuilhemN
Copy link
Contributor

GuilhemN commented Jun 8, 2016

Looks great 👍 !
Is there something missing before this can be merged ?

@fabpot
Copy link
Member

fabpot commented Jun 8, 2016

Thank you @juanmirod.

@fabpot fabpot closed this in 4256b68 Jun 8, 2016
@juanmirod
Copy link
Contributor Author

Thanks to you, I am glad to have contributed to the project.

@fabpot fabpot mentioned this pull request Oct 27, 2016
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.

None yet

6 participants