Rewrite view.md, still failing

This commit is contained in:
Chris Penner 2024-07-02 09:48:54 -07:00
parent c0950036f0
commit 478545e76a
2 changed files with 29 additions and 26 deletions

View File

@ -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
```

View File

@ -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