Skip to content

[Console] Open CompleteCommand for custom outputs #43923

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

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Nov 3, 2021

Q A
Branch? 5.4
Bug fix? no
New feature? no
Deprecations? no
Tickets -instead -->
License MIT
Doc PR -

Having this feature in 5.4 is especially great, as it will allow Composer 2.2 to use this feature as well.

If we in the future add fish or zsh support, it would be very cool if these can be "backported" by Composer. Keeping the $completionOutputs property closed would permit this, while this little change opens up adding custom output supports outside the Symfony source code.

@GromNaN
Copy link
Member

GromNaN commented Nov 4, 2021

You should add a test, right?

@wouterj wouterj force-pushed the feature/console-completion-forward branch from bd2cad0 to d3e4574 Compare November 4, 2021 11:49
@wouterj
Copy link
Member Author

wouterj commented Nov 4, 2021

Thanks for the reviews. All should be fixed now.

status: needs review

@fabpot
Copy link
Member

fabpot commented Nov 4, 2021

Can you fix the tests? The output has changed a bit.

@wouterj wouterj force-pushed the feature/console-completion-forward branch from d3e4574 to 1f58312 Compare November 4, 2021 12:16
@wouterj
Copy link
Member Author

wouterj commented Nov 4, 2021

Ooh, not again 😣 . Should be green now

@fabpot
Copy link
Member

fabpot commented Nov 4, 2021

Thank you @wouterj.

@fabpot fabpot merged commit 0abd898 into symfony:5.4 Nov 4, 2021
@wouterj wouterj deleted the feature/console-completion-forward branch November 4, 2021 12:32
@stof
Copy link
Member

stof commented Nov 4, 2021

@wouterj as we now make the CompletionOutputInterface an extension point where third-party code can register their own implementation, I think we need to add the constructor with no argument in the interface, to enforce that signature (as the instantiation is done in the CompleteCommand

This was referenced Nov 5, 2021
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