OptionalasideWaits without holding the session: the command steps out of its turn while the wait lasts, so other lines run (a pane's reads among them), and takes its turn again before going on. Waiting is not working. A host that runs one command at a time and nothing else has no need of it; the command then simply waits.
What the command waits on (a task's next line).
What it resolved with.
Places one file where this surface's operator can reach it.
The mechanics are the surface's: a write to the resolved path for the local CLI, a write on the client machine for a remote CLI, a saved file for a browser. A daemon never writes to its own disk on a surface's behalf, for the same reason it never spawns a shell there.
What to deliver and where the operator asked for it.
Where it landed and how large it was.
OptionalholdTakes a hold on the session for work outside any line the host ran (a joblet): it waits until nothing running holds what the work changes, as a line does, and gives it back when released. A host that runs one line at a time and nothing else has no need of it.
The pieces the work changes, or 'all'.
Gives the hold back.
Opens content in the surface's local editor and returns the result. The
editor mechanics are the surface's business — a temp file and $EDITOR
for the local CLI, the client's editor for a remote CLI, an editor
component in a browser.
The content to edit and an optional extension.
The edited content and whether it changed.
OptionalpeersThe surfaces attached to this session, when the host knows of more than itself (a daemon does; a local shell is alone). Absent means unknown.
Runs one pipeline segment against an input, returning its output. Where this runs is the surface's business — in-process for the local CLI, on the client machine for a remote CLI — but never on a daemon host.
The segment command line (e.g. grep foo).
The bytes to feed the segment on stdin.
Optionalsignal: AbortSignal
Aborted when the operator cancels the command; a surface that started a process kills it.
The segment's stdout.
Prompts for a line of input.
The prompt message and whether to hide the input.
The entered line, trimmed.
Runs one host-shell command on the surface machine.
The shell command without the leading !.
Optionalsignal: AbortSignal
Aborted when the operator cancels the command; a surface that started a process kills it.
The process exit code.
What this surface can do; read by builtins before they interact.