Skip to content

Add exclude patterns support for sort-only mode#19

Merged
dvrkn merged 1 commit intomasterfrom
feature/exclude-patterns
Jul 3, 2025
Merged

Add exclude patterns support for sort-only mode#19
dvrkn merged 1 commit intomasterfrom
feature/exclude-patterns

Conversation

@dvrkni
Copy link
Copy Markdown
Collaborator

@dvrkni dvrkni commented Jul 3, 2025

Summary

  • Add --exclude CLI argument to skip files matching patterns (e.g., *.terraform.yaml)
  • Support multiple exclude patterns for flexible file filtering
  • Add exclude_patterns to Config struct for configuration file support
  • Implement pattern matching using glob patterns and filename matching
  • Update README with exclude pattern examples and usage
  • Bump version to 0.1.8

Examples

# Exclude terraform files
yabe --sort-only --sort-config-path sort-config.yaml -p "**/*.yaml" --exclude "*.terraform.yaml"

# Multiple exclude patterns
yabe --sort-only --sort-config-path sort-config.yaml -p "**/*.yaml" --exclude "*.terraform.yaml" --exclude "*-template.yaml"

# Config file support
exclude_patterns:
  - "*.terraform.yaml"
  - "*-template.yaml"

Test plan

  • Test single exclude pattern functionality
  • Test multiple exclude patterns
  • Test exclude patterns with recursive glob patterns
  • Test exclude patterns with configuration file
  • Test exclude patterns with in-place sorting
  • Verify excluded files are logged appropriately

🤖 Generated with Claude Code

- Add --exclude CLI argument to skip files matching patterns
- Support multiple exclude patterns (e.g., *.terraform.yaml, *-template.yaml)
- Add exclude_patterns to Config struct for configuration file support
- Implement pattern matching using glob patterns and filename matching
- Update README with exclude pattern examples and usage
- Bump version to 0.1.8

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@dvrkn dvrkn merged commit 232aa23 into master Jul 3, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants