pub fn api_get(ctx: &Ctx, jwt: &str, path: &str) -> AppApiExpand description
GET https://api.github.com/{path} with the JWT as a bearer token.
The call goes through curl, spawned directly rather than through the
run’s executor so no stream of it can be journaled: the Authorization
header arrives on standard input via -H @-, so the token never
reaches an argument list, -q leads the arguments so no .curlrc can
turn on an echoing verbosity or reshape the call, and the trailing
-w line carries the status the answer is classified by.