summaryrefslogtreecommitdiff
path: root/docs/testing.md
diff options
context:
space:
mode:
authorDrew Ritter <drew@primeradiant.com>2026-11-26 00:46:07 -0800
committerDrew Ritter <drew@primeradiant.com>2026-11-26 00:46:07 -0800
commitf27e901302c8294370ac77bfba148c7d72bc8b78 (patch)
treec1db546ecef52054c5e867ba3dae1cd5c6be42a5 /docs/testing.md
parent3cad9e246314d52dcff002668cdbfceadd80a993 (diff)
docs(hooks): show how to read the escaping example's resultfix/wave1-run-hook-heredoc
The example's escape_for_json, copied from hooks/session-start, leaves its result in using_superpowers_escaped and prints nothing, but the block shows no call, so a hook author who copies it and writes json=$(escape_for_json "$text") gets an empty string and no error. Add a comment after the function that says why the result is left in a variable (capturing output with $(...) forks) and shows the call followed by the read of the variable. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/testing.md')
0 files changed, 0 insertions, 0 deletions