Commit d992769
authored
Refactoring and Enhancements
## 🎯 Main Features
### New Features
- **Interactive CLI Commands** (#f6beb58): Added interactive selection for `uninstall` and `update` commands with confirmation prompts
- **Local Installation Support** (#2a38056): Implemented local installation and dependency management capabilities
- **Shallow Clone Support** (#176b756): Added shallow cloning to significantly improve dependency download speed - **Issue #123**
- **Semantic Versioning** (#9e768ee, #b9dfd1e):
- Enhanced latest release discovery using proper semantic versioning - **Issue #181**
- Updated to semver v3 library with improved version constraint parsing - **Issue #209**
- **Toolchain Configuration** (#658e8e0): Enhanced installation and configuration options for Delphi compiler and toolchain - **Issue #206**
### Bug Fixes
- **Dependency Handling** (#44e13ea): Fixed `boss update` to only update explicitly requested dependencies instead of all packages
- **Version Selection** (#9e768ee): Fixed `boss upgrade` using string comparison instead of semantic versioning (was selecting 3.0.9 over 3.0.12)
- **JSON Error Handling** (#9e3cd18): Improved error handling for JSON unmarshalling in lock and package loading
- **Authentication** (#3a979a3): Fixed error handling in authentication methods to use fatal errors when appropriate
- **Dependency Loading** (#d092580): Updated dependency handling to use new package loading method
## 🏗️ Architecture & Code Quality
### Hexagonal Architecture Improvements
- **Repository Pattern** (#d898f7b, #42fef5c): Refactored filesystem and git interfaces with proper error handling
- **Service Layer** (#cf24239, #4181408): Improved package management and dependency handling with proper separation
- **Dependency Injection** (#cf24239): Removed unused interfaces, implemented DefaultProjectCompiler and DefaultArtifactManager
- **Cache Service** (#4181408): Renamed and reorganized cache service, introduced new lock service and dependency cache
### Code Quality Improvements
- **Constants** (#c3647e2, #c07baf9, #0575b50): Replaced hardcoded values with constants for better maintainability
- **Regular Expressions** (#c07baf9, #5bac7e0, #25923cc): Consolidated and reused compiled regex for better performance
- **Error Handling** (#a229e73, #caad3ac): Improved error handling across DoInstall calls and command execution
- **Code Deduplication** (#5151480, #94e3176): Simplified functions using filepath.Join and GetKey method
### Testing
- **Unit Tests** (#eb1ae1d, #176d558, #b4470a4, #1209837): Added comprehensive unit tests for:
- Dependency collection and warning handling
- Command registration and caching mechanisms
- Dependency cache functionality
- Various packages and functions
## 📝 Documentation
### Code Documentation
- **Package Comments** (#68751e1, #e6532e4, #09980e2): Enhanced package-level documentation across multiple files
- **Function Comments** (#eeab430, #406df1b, #071d753, #66579c3, #e3e67b0): Added detailed function comments for clarity
- **CLI Documentation** (#6b0bdfd): Enhanced CLI and core functionalities with detailed comments
- **README Updates** (#4bfbb4e): Updated boss.json structure with detailed field descriptions - **Issue #95**
### User Experience
- **Better Messages** (#b12aafd, #8a06819, #2602fd8): Enhanced error messages with emojis and clearer descriptions
- **Progress Tracking** (#3906f3b, #240a0e8, #07b3b2b): Improved progress tracking and logging during builds and installations
- **Status Icons** (#6b0bdfd, #3a979a3, #bd4fa2f, #31e581d): Updated status icons for better visual clarity
## 🔧 Technical Improvements
### Git Operations
- **Git Client** (#1460057): Implemented Git client configuration and streamlined checkout/pull methods - **Issue #197**
- **Error Returns** (#f6beb58): Refactored git Client methods to properly return errors
### Installation Process
- **Dependency Tracking** (#3424b9e, #44e13ea): Added visited map to track processed dependencies and filter requested deps
- **Warning Handling** (#500c53b, #4b965a0, #240a0e8): Enhanced warning handling and success message functionality
- **Forced Updates** (#6d25900): Enabled forced updates for dependencies and lock version handling
### Compiler Support
- **Architecture Support** (#07b3b2b): Updated Delphi version selection to support architecture specification
- **Version Handling** (#d143c9e): Updated Delphi compiler version in README
### Logging & Output
- **Message System** (#c4f42258, #bd4fa2f): Simplified logging by removing style parameter from Info method
- **Emoji Support** (#2602fd8, #3906f3b, #8b96211): Enhanced logging with emojis for better user experience
- **Consistency** (#bd4fa2f): Replaced pterm logging with msg package for consistency
## 📊 Statistics
- **Total Commits**: 71
- **Features**: 8
- **Bug Fixes**: 5
- **Refactorings**: 45+
- **Documentation**: 15+
- **Style Improvements**: 20+
- **Tests Added**: Multiple test suites
## 🔗 Related Issues
- #95 - boss.json documentation
- #123 - Shallow clone support
- #181 - Semantic versioning for upgrades
- #197 - Git client improvements
- #206 - Toolchain configuration
- #209 - Semver v3 upgradeFile tree
160 files changed
+12783
-2212
lines changed- .github/workflows
- cmd
- config
- internal
- adapters
- primary/cli
- config
- secondary
- filesystem
- git
- registry
- repository
- core
- domain
- ports
- services
- cache
- compilerselector
- compiler
- gc
- installer
- lock
- packages
- paths
- scripts
- tracker
- infra
- upgrade
- version
- pkg
- compiler
- consts
- env
- git
- installer
- models
- msg
- paths
- pkgmanager
- registry
- setup
- utils
- crypto
- dcc32
- dcp
- librarypath
- parser
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
160 files changed
+12783
-2212
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
0 commit comments