-
Notifications
You must be signed in to change notification settings - Fork 87
fix: set working directory if current is invalid #261
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
|
🎉 This PR is included in version 2.8.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
User description
Resolves #228
PR Type
Bug fix
Description
Fix invalid working directory issue in CLI
Add error handling for OSError when getting current directory
Automatically change to home directory when current directory is invalid
Display warning message to user when directory change occurs
Diagram Walkthrough
flowchart LR A["CLI Start"] --> B["Check Current Directory"] B --> C{"Directory Valid?"} C -->|Yes| D["Continue Normal Flow"] C -->|No| E["Change to Home Directory"] E --> F["Show Warning Message"] F --> DFile Walkthrough
cli.py
Add working directory validation and fallbacksrc/mcpm/cli.py
osandPathmodules