feat(cli): support description in create and presets list CLI commands (#19079)

## Description

This PR improves the `coder templates presets` and `coder create` CLI
commands to include preset descriptions.

## Changes

* Added a `description` column to the `coder templates presets list` CLI
command.
* Fixed the `-o json` output for `coder templates presets list` to
correctly include and format data.
* Updated the `coder create` CLI command to display the preset's
description in the selection menu.

Follow-up from: 
* https://github.com/coder/coder/pull/18910 
* https://github.com/coder/coder/pull/18912
* https://github.com/coder/coder/pull/18977
This commit is contained in:
Susana Ferreira
2025-07-29 16:59:26 +01:00
committed by GitHub
parent 415273f648
commit 4e7331a9c4
6 changed files with 105 additions and 23 deletions
+4 -4
View File
@@ -30,10 +30,10 @@ Select which organization (uuid or name) to use.
### -c, --column
| | |
|---------|----------------------------------------------------------------------|
| Type | <code>[name\|parameters\|default\|desired prebuild instances]</code> |
| Default | <code>name,parameters,default,desired prebuild instances</code> |
| | |
|---------|-----------------------------------------------------------------------------------|
| Type | <code>[name\|description\|parameters\|default\|desired prebuild instances]</code> |
| Default | <code>name,description,parameters,default,desired prebuild instances</code> |
Columns to display in table output.