Skip to content

fix: make --category implicitly trigger --list mode - #31

Merged
codeasier merged 1 commit into
mainfrom
fix/implicit-category-list
Apr 18, 2026
Merged

codeasier merged 1 commit into
mainfrom
fix/implicit-category-list

Conversation

@codeasier

Copy link
Copy Markdown
Owner

Summary

  • Allow pt-snap query --category basic to work without explicitly adding --list
  • Add implicit list trigger when --category is provided without --template-use or --template-info (line 178-179 in cli.py)
  • All 41 existing tests pass

Closes #30

The --category option on its own should list templates in that category
without requiring the redundant --list flag.

Closes #30
@codeasier
codeasier merged commit 89275b9 into main Apr 18, 2026
5 checks passed
@codeasier
codeasier deleted the fix/implicit-category-list branch April 18, 2026 05:34
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.

[BUG] --category option requires --list to work

1 participant