on master help sign in
remove additional hoon code tags
commit803e3f65cdfab595f1fb1da21dacfcda819cfe6d authortinnus-napbus <admin@tinnus-napbus.xyz> dateSat 22 May 2021, 23:44 (5 years ago) parent981aedd
1 file changed+8−8
arvo/clay/examples.md+8−8
arvo/clay/examples.md+8−8
@@ -203,7 +203,7 @@ This thread will subscribe to `/foo/txt` with an `%x` `care` and `/bar/txt` with
203203
204204Save the above to `ted/sub-mult.hoon`, `|commit %home` and run with `-sub-mult`. Now, create `foo.txt` and `bar.txt` in your home directory, hit backspace in the dojo to disconnect the thread and run `|commit %home`. You should see something like:
205205
206−```hoon
206+```
207207> |commit %home
208208>=
209209[%wris p=[%da p=~2021.4.27..06.07.08..5ec4] q={[p=%u q=/bar/txt] [p=%x q=/foo/txt]}]
@@ -217,7 +217,7 @@ Now, run the thread again, open `bar.txt` in an editor, modify its contents, sav
217217
218218Lastly, delete `foo.txt` and `|commit %home`. You should see something like:
219219
220−```hoon
220+```
221221> |commit %home
222222>=
223223[%wris p=[%da p=~2021.4.27..06.15.03..0da4] q={[p=%x q=/foo/txt]}]
@@ -274,7 +274,7 @@ This thread will subscribe to changes to your `%home` `desk` for the next three
274274
275275Make sure `foo.txt` doesn't exist in the root of your `%home` `desk`. Save this to `ted/sub-many.hoon`, `|commit %home`, run it like `-sub-many /foo/txt`, and hit backspace in the dojo to free up the dojo prompt. Now, add a file called `bar.txt` to your `desk` and `|commit %home`. You should see something like:
276276
277−```hoon
277+```
278278> |commit %home
279279>=
280280+ /~zod/home/260/bar/txt
@@ -282,7 +282,7 @@ Make sure `foo.txt` doesn't exist in the root of your `%home` `desk`. Save this
282282
283283Notice you've received no `%writ` from Clay. This is because `/foo/txt` doesn't exist. Now, create `foo.txt` and `|commit %home` again. You should see:
284284
285−```hoon
285+```
286286> |commit %home
287287>=
288288[ p=/many
@@ -295,7 +295,7 @@ Now that `/foo/txt` exists it will inform you of updates. Note that if you delet
295295
296296Now try adding `baz.txt`:
297297
298−```hoon
298+```
299299> |commit %home
300300>=
301301[ p=/many
@@ -306,7 +306,7 @@ Now try adding `baz.txt`:
306306
307307Now wait until the three minutes is up and try making a change, for example deleting `baz.txt`:
308308
309−```hoon
309+```
310310> |commit %home
311311>=
312312[ p=/many
@@ -443,7 +443,7 @@ Since `soba` is just a `list` of `miso`, you can add a bunch of `miso` and they'
443443
444444Save to `ted/multi-change.hoon`, `|commit %home`, and run:
445445
446−```hoon
446+```
447447> -multi-change
448448+ /~zod/home/37/foo/txt
449449+ /~zod/home/37/bar/txt
@@ -544,7 +544,7 @@ Here we'll look at committing changed files by sending Clay a `%dirk` `task`.
544544
545545With your `%home` `desk` mounted, try adding a file and, using the `send-task.hoon` thread, send a `%dirk` to commit the change:
546546
547−```hoon
547+```
548548> -send-task [%dirk %home]
549549+ /~zod/home/12/foo/txt
550550```