Skip to content

Allow cargo insta show to list all snapshot files#871

Open
max-sixty wants to merge 1 commit intomitsuhiko:masterfrom
max-sixty:show
Open

Allow cargo insta show to list all snapshot files#871
max-sixty wants to merge 1 commit intomitsuhiko:masterfrom
max-sixty:show

Conversation

@max-sixty
Copy link
Copy Markdown
Collaborator

Summary

  • Makes the path argument optional for cargo insta show
  • When invoked without a path, lists all snapshot files in the workspace
  • Provides a quick way to discover available snapshots
$ cargo insta show | head -3
insta/tests/snapshots/test_redaction__rounded_redaction.snap
insta/tests/snapshots/test_basic__unnamed_json_vector.snap
insta/tests/snapshots/test_redaction__user_toml.snap

Test plan

  • cargo test -p cargo-insta passes
  • Manual testing of cargo insta show (with and without path)

🤖 Generated with Claude Code

Makes the path argument optional for `cargo insta show`. When invoked
without a path, it now lists all snapshot files in the workspace.

This provides a quick way to see what snapshots exist without needing
to navigate the file system manually.

Co-Authored-By: Claude <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