Skip to content

Add p [var] command to print all or selected frame variables#408

Merged
KristofferC merged 2 commits into
masterfrom
kc/p-command
Jul 18, 2026
Merged

Add p [var] command to print all or selected frame variables#408
KristofferC merged 2 commits into
masterfrom
kc/p-command

Conversation

@KristofferC

Copy link
Copy Markdown
Member

Picks up #339 by @berquist (original commit preserved) and adds a polish commit on top:

  • use output_stream(state) like the other commands so output respects the terminal's color settings
  • print an error message when a requested variable does not exist in the frame instead of silently printing nothing
  • add tests

p prints all variables in the current frame (same as fr), p x [y ...] prints only the requested ones.

Fixes #313
Closes #339

🤖 Generated with Claude Code

berquist and others added 2 commits July 18, 2026 14:37
…add tests

Builds on #339 by Eric Berquist. Uses output_stream(state) like other
commands, prints an error for variables not present in the frame, and
adds a testset.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@KristofferC
KristofferC merged commit b6848dd into master Jul 18, 2026
12 checks passed
@KristofferC
KristofferC deleted the kc/p-command branch July 18, 2026 12:48
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.

Add p x to show x.

2 participants