on master help sign in
remove additional hoon code tags
803e3f6tinnus-napbus
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
203
203
204Save 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:
204Save 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:
205
205
206−```hoon
206+```
207> |commit %home
207> |commit %home
208>=
208>=
209[%wris p=[%da p=~2021.4.27..06.07.08..5ec4] q={[p=%u q=/bar/txt] [p=%x q=/foo/txt]}]
209[%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
217
217
218Lastly, delete `foo.txt` and `|commit %home`. You should see something like:
218Lastly, delete `foo.txt` and `|commit %home`. You should see something like:
219
219
220−```hoon
220+```
221> |commit %home
221> |commit %home
222>=
222>=
223[%wris p=[%da p=~2021.4.27..06.15.03..0da4] q={[p=%x q=/foo/txt]}]
223[%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
274
274
275Make 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:
275Make 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:
276
276
277−```hoon
277+```
278> |commit %home
278> |commit %home
279>=
279>=
280+ /~zod/home/260/bar/txt
280+ /~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
282
282
283Notice 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:
283Notice 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:
284
284
285−```hoon
285+```
286> |commit %home
286> |commit %home
287>=
287>=
288[ p=/many
288[ p=/many
@@ -295,7 +295,7 @@ Now that `/foo/txt` exists it will inform you of updates. Note that if you delet
295
295
296Now try adding `baz.txt`:
296Now try adding `baz.txt`:
297
297
298−```hoon
298+```
299> |commit %home
299> |commit %home
300>=
300>=
301[ p=/many
301[ p=/many
@@ -306,7 +306,7 @@ Now try adding `baz.txt`:
306
306
307Now wait until the three minutes is up and try making a change, for example deleting `baz.txt`:
307Now wait until the three minutes is up and try making a change, for example deleting `baz.txt`:
308
308
309−```hoon
309+```
310> |commit %home
310> |commit %home
311>=
311>=
312[ p=/many
312[ p=/many
@@ -443,7 +443,7 @@ Since `soba` is just a `list` of `miso`, you can add a bunch of `miso` and they'
443
443
444Save to `ted/multi-change.hoon`, `|commit %home`, and run:
444Save to `ted/multi-change.hoon`, `|commit %home`, and run:
445
445
446−```hoon
446+```
447> -multi-change
447> -multi-change
448+ /~zod/home/37/foo/txt
448+ /~zod/home/37/foo/txt
449+ /~zod/home/37/bar/txt
449+ /~zod/home/37/bar/txt
@@ -544,7 +544,7 @@ Here we'll look at committing changed files by sending Clay a `%dirk` `task`.
544
544
545With your `%home` `desk` mounted, try adding a file and, using the `send-task.hoon` thread, send a `%dirk` to commit the change:
545With your `%home` `desk` mounted, try adding a file and, using the `send-task.hoon` thread, send a `%dirk` to commit the change:
546
546
547−```hoon
547+```
548> -send-task [%dirk %home]
548> -send-task [%dirk %home]
549+ /~zod/home/12/foo/txt
549+ /~zod/home/12/foo/txt
550```
550```