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

refactor(parser): delete doc-based command configuration parser #239

Merged
merged 6 commits into from Sep 5, 2022

Conversation

Secrus
Copy link
Member

@Secrus Secrus commented Aug 29, 2022

With sdispaters blessing, I removed the option to configure commands via the __doc__ comment. It was adding too much unnecessary complexity to code and was prone to bugs (like all custom grammar parsers).

Resolves: #65
Resolves: #64
Resolves: #55

@Secrus Secrus requested a review from a team August 31, 2022 08:44
Copy link
Member

@branchvincent branchvincent left a comment

Choose a reason for hiding this comment

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

Couple tweaks. Also let's update the snippets in the README + add a line in the CHANGELOG

tests/commands/completion/fixtures/command_with_colons.py Outdated Show resolved Hide resolved
tests/commands/completion/fixtures/hello_command.py Outdated Show resolved Hide resolved
tests/commands/completion/fixtures/hello_command.py Outdated Show resolved Hide resolved
@branchvincent branchvincent merged commit e7687e9 into python-poetry:main Sep 5, 2022
@Secrus Secrus deleted the refactor/parser branch September 6, 2022 20:29
@iamkroot
Copy link

Are there any documented steps for migration from doc-based configs to the new method? Or do we have do it manually?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants