mirror of
https://github.com/urbit/developers.urbit.org.git
synced 2024-09-11 13:55:59 +03:00
add %fake scry to jael docs
This commit is contained in:
parent
fb9da9bca9
commit
d53df92f0b
@ -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`.
|
||||
|
Loading…
Reference in New Issue
Block a user