Skip to main content

host

Function host 

Source
pub(crate) fn host(rest: &[&str]) -> !
Expand description

choir invite <api> <name> <owner/repo> [read|write]

Prints the join link and nothing else, because the link is the whole artefact: it gets pasted into a chat window, and anything printed beside it invites pasting that too. The id:secret pair the API also returns is for curl -u and is not what a person receives.

name is a display name (D46). The account handle is minted by the node, so the string the op log carries forever is never one an operator typed at half past midnight. choir host — a fresh machine to a running node.

The composition, not a reimplementation: every step here is a call into the thing that already did it, and the value this adds is the order, the refusals between the steps, and the fact that a reader does not have to know which of three orders applies to their machine before they have run anything.

Two lines go to stdout at the end — the URL and, when one was asked for, the invite link — because those are the two things a person copies out of this. Everything else is stderr, so choir host inside a pipeline yields the addresses and nothing else.