Skip to content

Add api and token commands#97

Open
Ankur Goyal (ankrgyl) wants to merge 3 commits intomainfrom
http-commands
Open

Add api and token commands#97
Ankur Goyal (ankrgyl) wants to merge 3 commits intomainfrom
http-commands

Conversation

@ankrgyl
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

Latest downloadable build artifacts for this PR commit b3b85918bbeb:

Available artifact names
  • ``artifacts-build-global
  • ``artifacts-build-local-x86_64-apple-darwin
  • ``artifacts-build-local-x86_64-pc-windows-msvc
  • ``artifacts-build-local-x86_64-unknown-linux-musl
  • ``artifacts-build-local-aarch64-apple-darwin
  • ``artifacts-build-local-x86_64-unknown-linux-gnu
  • ``artifacts-build-local-aarch64-unknown-linux-musl
  • ``artifacts-build-local-aarch64-unknown-linux-gnu
  • ``artifacts-plan-dist-manifest
  • ``cargo-dist-cache

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a couple nits but otherwise looks good

}

async fn fetch_openapi_spec(source_url: &str) -> Result<String> {
let response = reqwest::Client::new()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: probably need DEFAULT_HTTP_TIMEOUT here

Comment on lines +407 to +410
return Ok(ResolvedBearerToken {
token,
expires_at: None,
});
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this is used in run_token we'll log the permanent BRAINTRUST_API_KEY to stdout. I think that's fine but calling it out.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

command structure and such look good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants