pub fn run_task_ctx_connection(
command: &ConnectionArgs,
env: &BTreeMap<String, String>,
version: &str,
out: &mut impl Write,
) -> Result<(), String>Expand description
Runs schedr task-ctx connection NAME: prints a connection’s values, its secrets filled
in (decision 174), as one line of JSON in the form --params takes, or with --env PREFIX as export PREFIX_PARAM='value' lines for eval (each value quoted for the
shell, so nothing in one runs); the error is the message for stderr, with the error kind.
§Errors
Outside a task, when the channel is gone, when the prefix isn’t a variable name’s start, or when the connection can’t be opened (not declared, not in the DAG folder, a secret it names unreadable).