`coder rename` registers `-y/--yes`, but its confirmation asks you to type the workspace name, and `cliui.Prompt` only honors `-y` for yes/no prompts. So `coder rename ws new -y` still blocked on input. With `-y`, the type-the-name prompt is now skipped. The data-loss warning is still printed. **Behavior change:** With `-y`, the rename happens without reading stdin. Without `-y`, the prompt is unchanged. Closes [CLI-35](https://linear.app/codercom/issue/CLI-35) _This PR was generated by Coder Agents on behalf of @nickvigilante._
520 B
Generated
520 B
Generated
title, description
| title | description |
|---|---|
| `coder rename` | Rename a workspace |
Rename a workspace
Usage
coder rename [flags] <workspace> <new name>
Description
- Rename a workspace without a confirmation prompt:
$ coder rename <workspace> <new name> --yes
Options
-y, --yes
| Type | bool |
Bypass confirmation prompts.