🔧 Automatic file:// protocol handling and devcontainer improvements#68
Merged
🔧 Automatic file:// protocol handling and devcontainer improvements#68
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #68 +/- ##
==========================================
- Coverage 66.47% 66.04% -0.43%
==========================================
Files 22 22
Lines 1238 1240 +2
Branches 174 175 +1
==========================================
- Hits 823 819 -4
- Misses 376 384 +8
+ Partials 39 37 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
… files - Add notes explaining file:// protocol is automatically added for .yaml files - Update all command examples to use simplified syntax - Maintain backward compatibility information - Cover usage, configuration, mappings, quickstart, file-handling, and development docs
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.
🎯 Overview
This PR introduces automatic file protocol handling and improves the development container configuration for better developer experience.
✨ What's Changed
🔧 File Protocol Enhancement
file://prepending - YAML files without protocol automatically getfile://prefixfile://prefixed paths continue to work unchanged🐳 DevContainer Improvements
📖 Usage Examples
Before (Manual Protocol)
# Users had to remember the file:// protocol struct generate file://my-config.yaml ./outputAfter (Automatic Protocol)
🔧 Technical Implementation
File Protocol Logic
.yamland doesn't start withfile://file://protocol when conditions are metDevContainer Optimizations
✅ Benefits
For End Users
For Developers
🧪 Testing
📁 Files Modified
struct_module/commands/generate.py- Added automatic file protocol handling.devcontainer/devcontainer.json- Optimized container configuration🔗 Compatibility
This enhancement improves user experience by removing the need to manually specify file protocols while maintaining full backward compatibility and improving the development environment.