Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Prereqs:
Clone and install tools:

```bash
mise trust
mise install
```

Expand Down
155 changes: 151 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ repository = "https://github.com/braintrustdata/bt"
[dependencies]
anyhow = "1.0.89"
braintrust-sdk-rust = { git = "https://github.com/braintrustdata/braintrust-sdk-rust", rev = "33ee4c8b8c1e4cd11961f7572100298caa3a39d0" }
chrono = { version = "0.4", features = ["serde"] }
clap = { version = "4.5.20", features = ["derive", "env"] }
crossterm = "0.28.1"
indicatif = "0.17.8"
Expand All @@ -25,6 +26,12 @@ dialoguer = { version = "0.11", features = ["fuzzy-select"] }
dotenvy = "0.15"
open = "5"
urlencoding = "2"
rand = "0.8"
sha2 = "0.10"
base64 = "0.22"

[dev-dependencies]
serial_test = "3.2"

[profile.dist]
inherits = "release"
Expand Down
4 changes: 4 additions & 0 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ pub struct BaseArgs {
#[arg(short = 'p', long, env = "BRAINTRUST_DEFAULT_PROJECT")]
pub project: Option<String>,

/// Auth profile to use
#[arg(long, env = "BRAINTRUST_PROFILE", default_value = "DEFAULT")]
pub profile: String,

Comment on lines +14 to +17
Copy link
Contributor

Choose a reason for hiding this comment

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

what is an auth profile in the context of braintrust?

/// Override stored API key (or via BRAINTRUST_API_KEY)
#[arg(long, env = "BRAINTRUST_API_KEY")]
pub api_key: Option<String>,
Expand Down
Loading