Revert view.md, will port later

This commit is contained in:
Chris Penner 2024-06-26 12:05:09 -07:00
parent 103569a5cd
commit c9c3abcd52
2 changed files with 23 additions and 28 deletions

View File

@ -1,7 +1,7 @@
# View commands
```ucm:hide
scratch/main> builtins.merge
.> builtins.merge
```
```unison:hide
@ -10,16 +10,16 @@ b.thing = "b"
```
```ucm:hide
scratch/main> add
.> add
```
```ucm
-- Should suffix-search and find values in sub-namespaces
scratch/main> view thing
.> view thing
-- Should be local to namespace
scratch/main a> view thing
.a> view thing
-- view.global should search globally and be absolutely qualified
scratch/main a> view.global thing
.a> view.global thing
-- Should support absolute paths outside of current namespace
scratch/main a> view .b.thing
.a> view .b.thing
```

View File

@ -7,7 +7,7 @@ b.thing = "b"
```ucm
-- Should suffix-search and find values in sub-namespaces
scratch/main> view thing
.> view thing
a.thing : Text
a.thing = "a"
@ -16,29 +16,24 @@ scratch/main> view thing
b.thing = "b"
-- Should be local to namespace
☝️ The namespace .a is empty.
.a> view thing
⚠️
thing : ##Text
thing = "a"
-- view.global should search globally and be absolutely qualified
.a> view.global thing
.a.thing : Text
.a.thing = "a"
The following names were not found in the codebase. Check your spelling.
thing
.b.thing : Text
.b.thing = "b"
-- Should support absolute paths outside of current namespace
.a> view .b.thing
.b.thing : Text
.b.thing = "b"
```
```ucm
-- Should suffix-search and find values in sub-namespacesscratch/main> view thing-- Should be local to namespace.a> 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
```
🛑
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