Skip to main content

context_command

Function context_command 

Source
pub fn context_command(client_config: &Path) -> String
Expand description

The command a supervision turn runs to read its print’s context.

This program’s own context read, against the print the turn is about and the configuration file naming the address this server took — which is the bound address rather than the configured one, because a configuration may ask for any free port and a turn has to reach the one that was taken — and the credential in force. printobserver-oneharness substitutes the print for the placeholder.

Both travel in a file rather than on the command line because no client command of that program takes either: where a server is and what authenticates to it are configuration, and a command line that could carry them is a command line that could be pointed anywhere — and one that lands a credential in a process table.