fix(cli/completion): emit code command in completions

Update completion generator and docs to use the code binary name.\n\nCloses #197.
This commit is contained in:
James Peter
2025-09-20 06:04:09 +10:00
parent 3eab651b13
commit eba296dd65
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -58,9 +58,9 @@ Sometimes it is not convenient to `cd` to the directory you want Codex to use as
Generate shell completion scripts via:
```shell
codex completion bash
codex completion zsh
codex completion fish
code completion bash
code completion zsh
code completion fish
```
### Experimenting with the Codex Sandbox
+1 -1
View File
@@ -412,7 +412,7 @@ fn merge_resume_cli_flags(interactive: &mut TuiCli, resume_cli: TuiCli) {
fn print_completion(cmd: CompletionCommand) {
let mut app = MultitoolCli::command();
let name = "codex";
let name = "code";
generate(cmd.shell, &mut app, name, &mut std::io::stdout());
}
+3 -3
View File
@@ -76,9 +76,9 @@ In the transcript preview, the footer shows an `Esc edit prev` hint while editin
Generate shell completion scripts via:
```shell
codex completion bash
codex completion zsh
codex completion fish
code completion bash
code completion zsh
code completion fish
```
#### `--cd`/`-C` flag