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]  Fix missing negative variation of negatable options in shell completion #46386

Merged
merged 1 commit into from May 27, 2022

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented May 17, 2022

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets n/a
License MIT
Doc PR n/a

Add negation of negatable options in bash completion output.

2nd PR for Fish, targeting branch 6.1: #46387

@GromNaN GromNaN requested a review from wouterj May 17, 2022
@GromNaN GromNaN requested a review from chalasr as a code owner May 17, 2022
@carsonbot carsonbot added this to the 5.4 milestone May 17, 2022
@carsonbot carsonbot changed the title [Console] Complete negatable options [Console]  Complete negatable options May 17, 2022
@GromNaN GromNaN force-pushed the complete-negatable branch 4 times, most recently from 1d7cdd1 to 273c505 Compare May 18, 2022
@GromNaN
Copy link
Member Author

GromNaN commented May 18, 2022

appveyor error not related to this PR: Messenger\Bridge\Redis.

stof
stof approved these changes May 18, 2022
@fabpot
Copy link
Member

fabpot commented May 18, 2022

That's a new feature, so 6.2.

@stof
Copy link
Member

stof commented May 18, 2022

Well, to me, that's a bugfix of the completion of option names

@chalasr
Copy link
Member

chalasr commented May 18, 2022

I agree it's a bugfix.

@fabpot
Copy link
Member

fabpot commented May 18, 2022

No, it's not. Even the description is clear about that: "Add negation of negatable options". Adding something is not a bug fix (or at least, not anymore).

@stof
Copy link
Member

stof commented May 18, 2022

Well, the same description could be written as "ensure that all option names are completable for negatable options"

@chalasr
Copy link
Member

chalasr commented May 18, 2022

Yea, I thought the same when reading the description. My reasoning is that completion should seamlessly handle any kind of option, otherwise it's buggy.

@GromNaN
Copy link
Member Author

GromNaN commented May 18, 2022

Shell completion is a form of documentation of the available options. Not suggesting the negative form --no-ansi is a defect that leads to a failure to understand for users of CLI tools. It would be a shame to have this bug once Composer enable completion.

@GromNaN GromNaN changed the title [Console]  Complete negatable options [Console]  Fix missing negative variation of negatable options in shell completion May 19, 2022
@GromNaN
Copy link
Member Author

GromNaN commented May 23, 2022

I think the tester should be fixed also.

fabpot added a commit that referenced this issue May 27, 2022
This PR was squashed before being merged into the 6.1 branch.

Discussion
----------

[Console] Complete negatable options (Fish)

| Q             | A
| ------------- | ---
| Branch?       | 6.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | n/a
| License       | MIT
| Doc PR        | n/a

Same as #46386 for Fish (introduced in 6.1).

Commits
-------

02b7b52 [Console] Complete negatable options (Fish)
fabpot
fabpot approved these changes May 27, 2022
@fabpot
Copy link
Member

fabpot commented May 27, 2022

Thank you @GromNaN.

@fabpot fabpot merged commit f79ed9a into symfony:5.4 May 27, 2022
10 of 11 checks passed
This was referenced May 27, 2022
@GromNaN GromNaN deleted the complete-negatable branch May 27, 2022
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

5 participants