Sanitize command name in fish shell generated completion file #297
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of the problem
This P.R tries to fix the behavior described in poetry's Fish completions raise errors but still works issue.
Software versions
I'm running
Description of the patch
A
--goodbye
option was added to thespaced command
in thecleo
test suite. Adding this option mimics the problem described in poetry's Fish completions raise errors but still works issue.fish
shell fixture was modified to what I consider a valid solution to the problem.Generated
fish
completion file before and after the patch:before the patch
after the patch
Modified test suite passes successfully.
I've tested this patch to generate the
poetry
fish
completion file and it seems to solve the problem.