2024-04-29 04:30:02 +03:00
|
|
|
```ucm:hide
|
2024-06-26 21:03:22 +03:00
|
|
|
scratch/main> builtins.merge lib.builtin
|
2024-04-29 04:30:02 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
```unison:hide
|
2022-07-11 18:10:04 +03:00
|
|
|
foo = 1
|
|
|
|
lib.foo = 2
|
|
|
|
lib.bar = 3
|
2024-04-29 04:30:02 +03:00
|
|
|
cat.foo = 4
|
|
|
|
cat.lib.foo = 5
|
|
|
|
cat.lib.bar = 6
|
|
|
|
somewhere.bar = 7
|
2022-07-11 18:10:04 +03:00
|
|
|
```
|
|
|
|
|
2024-04-29 04:30:02 +03:00
|
|
|
```ucm:hide
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> add
|
2022-07-11 18:10:04 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
```ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> find foo
|
|
|
|
scratch/main> view 1
|
|
|
|
scratch/main> find.all foo
|
|
|
|
scratch/main> view 1
|
2024-04-29 04:30:02 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
```ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> find-in cat foo
|
|
|
|
scratch/main> view 1
|
|
|
|
scratch/main> find-in.all cat foo
|
|
|
|
scratch/main> view 1
|
2022-07-11 18:10:04 +03:00
|
|
|
```
|
|
|
|
|
2024-06-26 21:03:22 +03:00
|
|
|
Finding within a namespace
|
2024-01-08 23:17:35 +03:00
|
|
|
|
2022-11-06 02:11:28 +03:00
|
|
|
```ucm
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> find bar
|
2024-08-01 02:54:10 +03:00
|
|
|
scratch/other> debug.find.global bar
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> find-in somewhere bar
|
2022-07-11 18:10:04 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
```ucm:error
|
2024-06-12 01:22:09 +03:00
|
|
|
scratch/main> find baz
|
2022-07-11 18:10:04 +03:00
|
|
|
```
|