Skip to content

feat(orgunits): add --exclude-by-name to rename-from-hierarchy - #105

Open
tokland wants to merge 1 commit into
developmentfrom
feature/orgunits-rename-from-hierarchy
Open

tokland wants to merge 1 commit into
developmentfrom
feature/orgunits-rename-from-hierarchy

Conversation

@tokland

@tokland tokland commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

https://app.clickup.com/t/4528615/869df0fpk

Summary

Adds an --exclude-by-name="NAME" option to the orgunits rename-from-hierarchy command to skip org units from being renamed.

  • A leaf is excluded when the exact name appears anywhere in its path (the leaf itself or any ancestor). Matching is case-sensitive.
  • The option is repeatable (--exclude-by-name="A" --exclude-by-name="B").

Tests

Added cases for exclusion by the leaf's own name, by an ancestor name, and exact-match-only behavior. All tests pass.

Skip leaves from renaming when the exact name appears anywhere in their
path (leaf or any ancestor). Report the excluded count in the summary.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

1 participant