The shell
yoke shell [--instance <name>]
yoke shell opens one connection on the instance's shell projection and holds it until the person
leaves. --instance selects the instance as it does for every client verb. On opening it prints the
actor the connection established and the connection's identity, then reads lines.
A line
A line is a client verb as it is written after yoke, and nothing else: unit list, plugin grant acquire camera, log query --unit acquire. The subjects, operations, arguments and options are the
verb's, parsed and rendered exactly as the verb parses and renders them; the shell has no vocabulary of
its own.
| A line that | Is |
|---|---|
| is a client verb | a call on the held connection, its answer rendered as the verb renders it |
carries --instance | refused, naming it: the connection already names its instance |
takes its input from standard input, --input - | refused: standard input is where the lines come from |
is a verb of app, instance or service, or no verb at all | refused, naming the line: those verbs do not speak to the Core |
| is empty | nothing |
is exit | the end of the shell |
Words are separated by white space, and a word in single or double quotes may hold it. Nothing else is interpreted: no variables, no globbing, no redirection.
Events, streams and refusals
- The standing subscription's events print as they arrive, one per line beginning
*, between one answer and the next and never inside one. Answers are matched by the call identity the shell chose, so an event never reads as part of an answer. - A verb whose answer is a stream —
log follow,core subscribe— runs until the person interrupts it. The interrupt cancels that call and leaves the connection open; at the prompt it does nothing. - A refusal prints as the verb prints it, and the shell goes on.
How it ends
| Exit status | When |
|---|---|
0 | the person closed it: exit, or the end of the input |
1 | the connection was refused when it opened |
2 | the connection could not be opened, or ended while the person was still there: the Core stopped, the link dropped |
Nothing is persisted. There is no history file. A shell opened again is a new connection, with a new identity and a fresh snapshot.