diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -80,6 +80,14 @@ the common shapes, streaming into a `std.Io.Writer`. A refusal is `error.Refused` and `said()` holds the server's words. Its buffers are in the struct: no allocator. +`verbs.run(&fsys, args, stdin, stdout, stderr)` makes a program's own binary +the command line of the tree it dialled: `ls`, `read`, `write`, `ask`, +`follow`, `stat`, `help PATH` (the lines of the tree's `/README` whose first +word names PATH, a path over it or one under it, `<n>` standing for any name, +with the lines indented under them) and `complete PREFIX` (a directory listing, a path +a line, for shell completion). Exit status 0, or 1 with the server's words on +stderr. See the top of `src/verbs.zig` for the five lines a program adds. + For a server, call `Server.receive()` after `push()`. A request borrows the input until `release()`. After releasing backend fids and canceling outstanding work, answer Tversion with `negotiate()`. Answer other requests with `reply()`. The |
