Merge pull request #323 from urbit/i/321/jael-fake-scry

add %fake scry to jael docs
This commit is contained in:
tinnus-napbus 2023-03-28 21:04:00 +13:00 committed by GitHub
commit e841e688b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,27 @@ A `%code` scry gets the current web login code. It takes your ship name as its `
~lidlut-tabwed-pillex-ridrup
```
## `%fake`
A `%fake` scry checks whether the current ship is fake (a development ship
booted with the `-F` option). The type returned is a `?`.
#### Example
On a fake `~zod`:
```
> .^(? %j /=fake=)
%.y
```
On a real planet:
```
> .^(? %j /=fake=)
%.n
```
## `%life`
A `%life` scry gets the current `life` (key revision number) of a ship if known, otherwise it crashes. It takes a ship as its `path` and the type returned is a `@ud`.