mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
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:
+3
-3
@@ -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
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user