Port find-command to projects

This commit is contained in:
Chris Penner 2024-06-26 11:03:22 -07:00
parent a92885a8bd
commit f71008b6a2
2 changed files with 23 additions and 20 deletions

View File

@ -1,6 +1,5 @@
```ucm:hide
scratch/main> builtins.merge
scratch/main> move builtin lib.builtin
scratch/main> builtins.merge lib.builtin
```
```unison:hide
@ -31,13 +30,12 @@ scratch/main> find-in.all cat foo
scratch/main> view 1
```
```ucm
scratch/main somewhere> find bar
scratch/main somewhere> find.global bar
```
Finding within a namespace
```ucm
scratch/main> find bar
-- Shows UUIDs
-- scratch/main> find.global bar
scratch/main> find-in somewhere bar
```

View File

@ -57,10 +57,24 @@ scratch/main> view 1
cat.lib.foo = 5
```
```ucm
☝️ The namespace .somewhere is empty.
Finding within a namespace
.somewhere> find bar
```ucm
scratch/main> find bar
1. somewhere.bar : Nat
-- Shows UUIDs
-- scratch/main> find.global bar
scratch/main> find-in somewhere bar
1. bar : Nat
```
```ucm
scratch/main> find baz
☝️
@ -76,22 +90,13 @@ scratch/main> view 1
namespace.
```
```ucm
.somewhere> find bar.somewhere> find.global bar
```
🛑
The transcript failed due to an error in the stanza above. The error is:
scratch/main> find.global notHere
😶
No results. Check your spelling, or try using tab completion
to supply command arguments.
`find.global` can be used to search outside the current
namespace.
```