mirror of
https://github.com/openai/codex.git
synced 2026-12-01 00:20:48 +00:00
refactor: clarify ambiguous literal argument APIs
Use named enums and methods where this follow-up touches real code, and reframe the new argument-comment lint examples around legacy APIs so the docs do not present `bool` and `Option` positional literals as the preferred design. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -841,7 +841,7 @@ async fn enable_feature_in_config(interactive: &TuiCli, feature: &str) -> anyhow
|
||||
let codex_home = find_codex_home()?;
|
||||
ConfigEditsBuilder::new(&codex_home)
|
||||
.with_profile(interactive.config_profile.as_deref())
|
||||
.set_feature_enabled(feature, true)
|
||||
.enable_feature(feature)
|
||||
.apply()
|
||||
.await?;
|
||||
println!("Enabled feature `{feature}` in config.toml.");
|
||||
@@ -854,7 +854,7 @@ async fn disable_feature_in_config(interactive: &TuiCli, feature: &str) -> anyho
|
||||
let codex_home = find_codex_home()?;
|
||||
ConfigEditsBuilder::new(&codex_home)
|
||||
.with_profile(interactive.config_profile.as_deref())
|
||||
.set_feature_enabled(feature, false)
|
||||
.disable_feature(feature)
|
||||
.apply()
|
||||
.await?;
|
||||
println!("Disabled feature `{feature}` in config.toml.");
|
||||
|
||||
Reference in New Issue
Block a user