Improve testing of link/unlink

Adds a check for links by type, and a check for unlink
This commit is contained in:
Paul Chiusano 2021-08-31 11:15:35 -05:00
parent 9eeb1eef21
commit e32b2b0057
2 changed files with 17 additions and 0 deletions

View File

@ -48,6 +48,7 @@ We can look at the links we have:
```ucm
.> links coolFunction
.> links coolFunction License
```
We can link the same metadata simultaneously to multiple definitions:
@ -67,4 +68,6 @@ myLibrary.h x = x + 3
.myLibrary> links g
.myLibrary> links h
.myLibrary> history
.> unlink coolFunction.doc coolFunction
```

View File

@ -108,6 +108,13 @@ We can look at the links we have:
Tip: Try using `display 1` to display the first result or
`view 1` to view its source.
.> links coolFunction License
1. coolFunction.license : License
Tip: Try using `display 1` to display the first result or
`view 1` to view its source.
```
We can link the same metadata simultaneously to multiple definitions:
@ -193,4 +200,11 @@ myLibrary.h x = x + 3
#7rksc58cce (start of history)
.> unlink coolFunction.doc coolFunction
Updates:
1. coolFunction : Nat -> Nat
- 2. doc : Doc
```