pub fn run_task_ctx_api(
(method, path, data, idempotency_key): (&str, &str, Option<&str>, Option<&str>),
env: &BTreeMap<String, String>,
version: &str,
(out, err): (&mut impl Write, &mut impl Write),
) -> Result<(), String>Expand description
Runs schedr task-ctx api: prints the answer’s body as one line of JSON.
§Errors
Outside a task, when --data isn’t JSON, when the channel is gone, or when the API answers
an error status (its message).