Repository navigation
v0.4.2 - Bug Fixes and Glob Pattern Support
π Bug Fixes and New Features
This release resolves all reported GitHub issues and adds comprehensive glob pattern support.
β Fixed Issues
Issue #1: CLI mode glob pattern handling
- Added full support for Unix-style glob patterns (
*.ext,*pattern*,prefix*,*suffix) - Commands like
smv title "*.org" directory -pnow work correctly - Automatic conversion of glob patterns to appropriate CNP filters
- Smart routing to CNP mode for glob-based commands
Issue #2: Kebab case transformation
- Confirmed working correctly:
"Dir Template.txt"β"dir-template.txt"β - Spaces are properly converted to hyphens in all cases
Issue #3: Space handling across transformers
- Verified all transformations handle spaces correctly:
- Snake case:
"File with Spaces.md"β"file_with_spaces.md"β - Kebab case:
"File with Spaces.md"β"file-with-spaces.md"β - Title case:
"test_deletion"β"Test Deletion"β
- Snake case:
- Multiple spaces are correctly normalized
π§ Technical Improvements
- Enhanced CNP Grammar Parser: Added
is_glob_pattern()andconvert_glob_to_filter()functions - Improved Routing Logic: Smart detection of glob patterns for proper command routing
- Comprehensive Test Suite: 6 new test functions covering all glob pattern edge cases
- Better Error Handling: Robust pattern matching with fallback to generic name filters
π Test Coverage
- All 20 library tests passing β
- New test coverage for:
- Glob pattern detection (
*.txt,file?.log,file[0-9].txt,file{a,b,c}.txt) - Pattern conversion (
*.extβEXT:ext,*pattern*βNAME:pattern) - Edge cases (
*.*,*.tar.gz, complex patterns) - Mixed CNP filter scenarios
- Glob pattern detection (
π Usage Examples
# Transform only .org files with glob pattern
smv title "*.org" directory -p
# Multiple glob patterns
smv kebab "*.txt" "*.md" . -p
# Mix glob patterns with CNP filters
smv snake "*.rs" TYPE:file src -p
# Complex patterns
smv clean "*template*" projects/ -r -pπ¦ Installation
# Install via cargo
cargo install smv
# Or download from GitHub releasesπ Compatibility
- Fully backward compatible with all existing functionality
- Seamless integration with CNP ecosystem tools (DSC, XFD, SAY, DFF)
- Works with all transformation types and routing options
Full Changelog: v0.4.1...v0.4.2
Published to crates.io: https://crates.io/crates/smv/0.4.2
π€ Generated with Claude Code