feat: Enhanced CLI Architecture with Modular Completion System#2
Merged
Conversation
- Added commands/utils/paths.py with ProjectPaths class - Provides consistent project root detection from anywhere - Updated all proj commands to use the new path resolver - Updated dev/precommit to use the path resolver - Ensures all commands know where the project root is - Based on Shaypoor's path resolution pattern but simplified
- Update pre-commit hooks to Black 25.1.0 and Ruff 0.12.8 - Apply consistent formatting to completion.py - Ensure CI, local dev, and pre-commit use same tool versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🚀 Summary
This PR introduces significant enhancements to the ehAye™ Core CLI framework, implementing a robust modular architecture with advanced completion support, comprehensive utility modules, and strict dependency management.
✨ Key Features
1. Modular Completion System
completion.pymodules for all command groups (dev, build, package, proj, release)2. Advanced Utility Modules
config.py: Centralized configuration management with validationpaths.py: Robust path resolution for project root detectionlogging.py: Structured logging with multiple handlers and formatterssubprocess.py: Secure subprocess execution with timeout and sanitizationexceptions.py: Comprehensive exception hierarchy for better error handling3. Dependency Management
requirements-lock.txtfor complete dependency tree4. Project Structure Improvements
tests/directorypip.conf,setup.cfg) to control build artifactsegg-infodirectory creation in project root.gitignorepatterns for cleaner repository📊 Changes Overview
🔧 Technical Details
Configuration Management
Path Resolution
Logging System
Subprocess Security
✅ Testing & Quality
🔄 Migration Notes
For existing users:
./setup.shto update dependenciessource .venv/bin/activatecommands/autogen/📝 Documentation
tests/README.md🎯 Breaking Changes
None - All changes are backward compatible.
🚦 Checklist
🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]