Skip to content

print: filter sheets by parameters with --where - #251

Merged
mahach666 merged 2 commits into
mainfrom
feat/print-where
Nov 16, 2026
Merged

mahach666 merged 2 commits into
mainfrom
feat/print-where

Conversation

@mahach666

Copy link
Copy Markdown
Collaborator

Stacked on #248 (reuses SheetFilter).\n\n- rvtio print --where NAME=VALUE (also != and ~, * ? wildcards, repeatable, case-insensitive, Yes/No aliases) with --sheet, --all-sheets or --list-sheets; with --sheet a sheet prints when it is one of those numbered and matches the filters (as in rvt-prt).\n- Misspelt name or empty match exits 1; --where without sheet context exits 1.\n- Docs: docs/printing.md, README, CHANGELOG. Tests: 3 new PrintCommandTests (no fixture files needed); SheetFilterTests/SheetCatalogTests/SheetsCommandTests green.\n\nNo Autodesk code.

mahach666 added a commit that referenced this pull request Nov 16, 2026
Review #251: --sheet A101,A102 with --where Sheet Number=A102 aborted with No printable sheet A101 instead of printing A102. Explicit names were resolved against the already-filtered catalogue. Resolve against the complete catalogue via testable SelectExplicitSheets, then intersect; list/all paths filter at use. Tests cover mixed matching/nonmatching, unknown, empty-after-filter and no-filter selections.
Reuses SheetFilter from rvtio sheets: --where NAME=VALUE (also != and ~, wildcards, repeatable) with --sheet, --all-sheets or --list-sheets; with --sheet a sheet prints when numbered and matching. Misspelt name or empty match exits 1. Docs (printing.md, README, CHANGELOG) + PrintCommandTests cases.
Review #251: --sheet A101,A102 with --where Sheet Number=A102 aborted with No printable sheet A101 instead of printing A102. Explicit names were resolved against the already-filtered catalogue. Resolve against the complete catalogue via testable SelectExplicitSheets, then intersect; list/all paths filter at use. Tests cover mixed matching/nonmatching, unknown, empty-after-filter and no-filter selections.
@mahach666
mahach666 changed the base branch from feat/sheets-where-params to main November 16, 2026 17:07
@mahach666
mahach666 merged commit c0573bc into main Nov 16, 2026
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.

1 participant