mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 02:25:39 +03:00
Rewrite view.md, still failing
This commit is contained in:
parent
c0950036f0
commit
478545e76a
@ -1,7 +1,7 @@
|
||||
# View commands
|
||||
|
||||
```ucm:hide
|
||||
.> builtins.merge
|
||||
scratch/main> builtins.merge
|
||||
```
|
||||
|
||||
```unison:hide
|
||||
@ -10,16 +10,16 @@ b.thing = "b"
|
||||
```
|
||||
|
||||
```ucm:hide
|
||||
.> add
|
||||
scratch/main> add
|
||||
```
|
||||
|
||||
```ucm
|
||||
-- Should suffix-search and find values in sub-namespaces
|
||||
.> view thing
|
||||
-- Should be local to namespace
|
||||
.a> view thing
|
||||
scratch/main> view thing
|
||||
-- view.global should search globally and be absolutely qualified
|
||||
.a> view.global thing
|
||||
-- Should support absolute paths outside of current namespace
|
||||
.a> view .b.thing
|
||||
scratch/other> view.global thing
|
||||
-- Should support absolute paths
|
||||
scratch/main> view .b.thing
|
||||
-- Should support branch relative paths
|
||||
scratch/other> view /main:.a.thing
|
||||
```
|
||||
|
@ -7,7 +7,7 @@ b.thing = "b"
|
||||
|
||||
```ucm
|
||||
-- Should suffix-search and find values in sub-namespaces
|
||||
.> view thing
|
||||
scratch/main> view thing
|
||||
|
||||
a.thing : Text
|
||||
a.thing = "a"
|
||||
@ -15,25 +15,28 @@ b.thing = "b"
|
||||
b.thing : Text
|
||||
b.thing = "b"
|
||||
|
||||
-- Should be local to namespace
|
||||
.a> view thing
|
||||
|
||||
thing : ##Text
|
||||
thing = "a"
|
||||
|
||||
-- view.global should search globally and be absolutely qualified
|
||||
.a> view.global thing
|
||||
scratch/other> view.global thing
|
||||
|
||||
.a.thing : Text
|
||||
.a.thing = "a"
|
||||
⚠️
|
||||
|
||||
.b.thing : Text
|
||||
.b.thing = "b"
|
||||
|
||||
-- Should support absolute paths outside of current namespace
|
||||
.a> view .b.thing
|
||||
|
||||
.b.thing : Text
|
||||
.b.thing = "b"
|
||||
The following names were not found in the codebase. Check your spelling.
|
||||
thing
|
||||
|
||||
```
|
||||
|
||||
```ucm
|
||||
-- Should suffix-search and find values in sub-namespacesscratch/main> view thing-- view.global should search globally and be absolutely qualifiedscratch/other> view.global thing-- Should support absolute pathsscratch/main> view .b.thing-- Should support branch relative pathsscratch/other> view /main:.a.thing
|
||||
```
|
||||
|
||||
|
||||
🛑
|
||||
|
||||
The transcript failed due to an error in the stanza above. The error is:
|
||||
|
||||
|
||||
⚠️
|
||||
|
||||
The following names were not found in the codebase. Check your spelling.
|
||||
thing
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user