feat: add codex completion to generate shell completions (#1491)

Once this lands, we can update our brew formula to use
`generate_completions_from_executable()` like so:


905238ff7f/Formula/h/hgrep.rb (L21-L25)
This commit is contained in:
Michael Bolin
2025-07-08 21:43:27 -07:00
committed by GitHub
parent 8d35ad0ef7
commit 4a15ebc1ca
4 changed files with 43 additions and 0 deletions

10
codex-rs/Cargo.lock generated
View File

@@ -519,6 +519,15 @@ dependencies = [
"terminal_size",
]
[[package]]
name = "clap_complete"
version = "4.5.54"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aad5b1b4de04fead402672b48897030eec1f3bfe1550776322f59f6d6e6a5677"
dependencies = [
"clap",
]
[[package]]
name = "clap_derive"
version = "4.5.32"
@@ -581,6 +590,7 @@ version = "0.0.0"
dependencies = [
"anyhow",
"clap",
"clap_complete",
"codex-common",
"codex-core",
"codex-exec",