Commit 10dcaf4
committed
present: document shebang and txtar for .play
The "play" command for present does not only support Go code, which was
implicitly documented, but also generic scripts identified by a shebang
or txtar-encoded input - enabling Go modules.
The locally used implementation for "play" resides in
./playground/socket/socket.go. Mostly undocumented, this code first
checks the input for a shebang and, if present, executes input with the
shebang interpreter. This code also allows txtar-encoded input, which
can be used to "play" Go modules, including external dependencies.
Documenting the actual behavior helps users to understand and use the
software better. Personally, I initially wanted to patch Go module
support in present, just to find out everything is already there - just
undocumented.1 parent 8866876 commit 10dcaf4
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
290 | 308 | | |
291 | 309 | | |
292 | 310 | | |
| |||
0 commit comments