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:
Josh McKinney
2026-03-13 19:32:57 -07:00
co-authored by Codex
parent 4e594bc93b
commit 300d93ed36
15 changed files with 151 additions and 62 deletions
+2 -2
View File
@@ -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.");