-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat(app): add better error for removed commands #10053
Conversation
Reviewer's Guide by SourceryThis pull request implements a better user experience for removed commands, such as the Sequence diagram for handling removed commandssequenceDiagram
actor User
participant App as Poetry Application
participant ErrorHandler as Command Not Found Handler
User->>App: Execute removed command (e.g., 'shell')
App->>ErrorHandler: Check if command exists
alt Command is in COMMAND_NOT_FOUND_MESSAGES
ErrorHandler->>User: Display custom error message with alternatives
else Command not in special messages
ErrorHandler->>User: Display standard command not found error
end
Class diagram for Application error handling changesclassDiagram
class Application {
-dict COMMAND_NOT_FOUND_MESSAGES
-str COMMAND_NOT_FOUND_PREFIX_MESSAGE
+_run(IO io) int
}
note for Application "Added error handling for
removed commands"
class CleoCommandNotFoundError {
+str message
}
Application ..> CleoCommandNotFoundError: handles
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @abn - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
8e77707
to
fdbff64
Compare
In cases like the `shell` command, where it has been moved to a plugin, allow Poetry to provide a better UX when these commands are called.
fdbff64
to
06b7728
Compare
In cases like the
shell
command, where it has been moved to a plugin, allow Poetry to provide a better UX when these commands are called.When rendered this looks like the following.
Summary by Sourcery
Tests: