Skip to content

fix(shopping-list): error on bad explicit --pantry, drop planning docs#343

Merged
dubadub merged 1 commit into
feat/shopping-list-pantry-flagsfrom
claude/fix-pr-340-reviews-lgMsT
May 15, 2026
Merged

fix(shopping-list): error on bad explicit --pantry, drop planning docs#343
dubadub merged 1 commit into
feat/shopping-list-pantry-flagsfrom
claude/fix-pr-340-reviews-lgMsT

Conversation

@dubadub
Copy link
Copy Markdown
Member

@dubadub dubadub commented May 15, 2026

Addresses review items on #340.

Summary

  • Remove docs/superpowers/ planning artifacts that were inadvertently committed with the feature (flagged by all three reviewers).
  • Error out when an explicitly-provided --pantry <path> cannot be read, instead of silently warning and producing an unfiltered list. Auto-discovered pantry paths still fall through silently since absence is expected. --ignore-pantry still wins and performs no file I/O.
  • Tweak the "no pantry resolved" debug message so it stays accurate after the ignore-path branch.

Test plan

  • cargo fmt --check
  • cargo clippy --all-targets -- -D warnings
  • cargo test
  • --pantry /does/not/exist.conf now exits with Failed to read pantry file '/does/not/exist.conf': No such file or directory
  • --ignore-pantry --pantry /does/not/exist.conf still succeeds (no read attempt) and matches the unfiltered list
  • Default auto-discovery behavior unchanged

Generated by Claude Code

When --pantry is passed explicitly, surface read failures as errors
instead of silently warning and producing an unfiltered list. Auto-
discovered pantry paths still fall through silently, since absence is
expected.

Also remove the docs/superpowers/ planning artifacts that were
inadvertently committed with the feature.
@dubadub dubadub merged commit 51cf7bc into feat/shopping-list-pantry-flags May 15, 2026
1 check passed
@dubadub dubadub deleted the claude/fix-pr-340-reviews-lgMsT branch May 15, 2026 18:35
dubadub added a commit that referenced this pull request May 15, 2026
* docs: add design for shopping-list pantry flags

Adds spec for --pantry and --ignore-pantry flags on the shopping-list
command, mirroring the existing --aisle handling.

* docs: add implementation plan for shopping-list pantry flags

* feat(shopping-list): add --pantry and --ignore-pantry flags

* refactor(shopping-list): drop unnecessary clone on args.pantry

* fix(shopping-list): error on unreadable explicit --pantry path (#343)

When --pantry is passed explicitly, surface read failures as errors
instead of silently warning and producing an unfiltered list. Auto-
discovered pantry paths still fall through silently, since absence is
expected.

Also remove the docs/superpowers/ planning artifacts that were
inadvertently committed with the feature.

Co-authored-by: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
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