Commit d57cbc2
authored
docs: add input-form decision rule, document @- heredoc as hook-safe path (#334)
The @- stdin/heredoc route already works and is the cleanest way to make a
single multi-line edit without writing a file — and because the command line
starts with ./supertool (no cat/echo), it survives enforced/autonomous runs
that block bare shell builtins. The docs covered the mechanic but never the
decision: when to pick colon-CLI vs @- vs @file. Add a 'Which form?' table to
input-forms.md naming the cat-to-file trap, and expand the bare @- line in
edits.md with a working heredoc example and cross-link.
Refs #3281 parent 7aed79b commit d57cbc2
2 files changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
5 | 17 | | |
6 | 18 | | |
7 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
76 | 86 | | |
77 | 87 | | |
78 | 88 | | |
| |||
0 commit comments