mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 02:25:39 +03:00
Port find-command to projects
This commit is contained in:
parent
a92885a8bd
commit
f71008b6a2
@ -1,6 +1,5 @@
|
|||||||
```ucm:hide
|
```ucm:hide
|
||||||
scratch/main> builtins.merge
|
scratch/main> builtins.merge lib.builtin
|
||||||
scratch/main> move builtin lib.builtin
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```unison:hide
|
```unison:hide
|
||||||
@ -31,13 +30,12 @@ scratch/main> find-in.all cat foo
|
|||||||
scratch/main> view 1
|
scratch/main> view 1
|
||||||
```
|
```
|
||||||
|
|
||||||
```ucm
|
Finding within a namespace
|
||||||
scratch/main somewhere> find bar
|
|
||||||
scratch/main somewhere> find.global bar
|
|
||||||
```
|
|
||||||
|
|
||||||
```ucm
|
```ucm
|
||||||
scratch/main> find bar
|
scratch/main> find bar
|
||||||
|
-- Shows UUIDs
|
||||||
|
-- scratch/main> find.global bar
|
||||||
scratch/main> find-in somewhere bar
|
scratch/main> find-in somewhere bar
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -57,10 +57,24 @@ scratch/main> view 1
|
|||||||
cat.lib.foo = 5
|
cat.lib.foo = 5
|
||||||
|
|
||||||
```
|
```
|
||||||
```ucm
|
Finding within a namespace
|
||||||
☝️ The namespace .somewhere is empty.
|
|
||||||
|
|
||||||
.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.
|
namespace.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
```ucm
|
```ucm
|
||||||
.somewhere> find bar.somewhere> find.global bar
|
scratch/main> find.global notHere
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
🛑
|
|
||||||
|
|
||||||
The transcript failed due to an error in the stanza above. The error is:
|
|
||||||
|
|
||||||
|
|
||||||
😶
|
😶
|
||||||
|
|
||||||
No results. Check your spelling, or try using tab completion
|
No results. Check your spelling, or try using tab completion
|
||||||
to supply command arguments.
|
to supply command arguments.
|
||||||
|
|
||||||
`find.global` can be used to search outside the current
|
|
||||||
namespace.
|
|
||||||
|
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user