`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._
34 lines
520 B
Markdown
Generated
34 lines
520 B
Markdown
Generated
---
|
|
# Code generated by make gen. DO NOT EDIT.
|
|
title: "`coder rename`"
|
|
description: Rename a workspace
|
|
---
|
|
|
|
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
|
|
|
Rename a workspace
|
|
|
|
## Usage
|
|
|
|
```console
|
|
coder rename [flags] <workspace> <new name>
|
|
```
|
|
|
|
## Description
|
|
|
|
```console
|
|
- Rename a workspace without a confirmation prompt:
|
|
|
|
$ coder rename <workspace> <new name> --yes
|
|
```
|
|
|
|
## Options
|
|
|
|
### -y, --yes
|
|
|
|
| | |
|
|
|------|-------------------|
|
|
| Type | <code>bool</code> |
|
|
|
|
Bypass confirmation prompts.
|