-
Notifications
You must be signed in to change notification settings - Fork 2k
[codex-rs] fix: exit code 1 if no api key #697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
codex-rs/exec/src/lib.rs
Outdated
"\n\x1b[31mMissing OpenAI API key.\x1b[0m\n\n\ | ||
Set the environment variable \x1b[1mOPENAI_API_KEY\x1b[0m and re-run this command.\n\ | ||
You can create a key here: \x1b[1m\x1b[4mhttps://platform.openai.com/account/api-keys\x1b[0m\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick; we have owo-colors
in the workspace already, this would read better if we stylized with that instead. See: https://docs.rs/owo-colors/latest/owo_colors/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have good news for you: #719
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shippit!
|
@@ -24,3 +24,4 @@ tokio = { version = "1", features = [ | |||
] } | |||
tracing = { version = "0.1.41", features = ["log"] } | |||
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] } | |||
owo-colors = "4.2.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: alpha sort
@@ -39,6 +51,20 @@ pub async fn run_main(cli: Cli) -> anyhow::Result<()> { | |||
.. | |||
} = cli; | |||
|
|||
// --------------------------------------------------------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This header comment doesn't fit with the existing style.
I'm moving this around a bit in #719 FYI. |
No description provided.