Skip to content

Incorrect line wrapping for property description in rad resource-type show #9756

@zachcasper

Description

@zachcasper

Steps to reproduce

❯ stty size               
35 119

❯ rad resource-type show Radius.Resources/postgreSQL 
TYPE                         NAMESPACE
Radius.Resources/postgreSQL  Radius.Resources

DESCRIPTION:
A standard PostgreSQL database server with a single database created
API VERSION: 2023-10-01-preview

TOP-LEVEL PROPERTIES:

NAME         TYPE      REQUIRED  READ-ONLY  DESCRIPTION
application  string    false     false      
database     string    false     true       The name of the database
environment  string    false     false      
host         string    false     true       The host name of the database server
password     string    false     true       The password for the database server
port         string    false     true       The port number of the database server
size         string    false     false      The size of the PostgreSQL database, non production environments can be (S)
mall or (M)edium, production environments can be or (S)mall, (M)edium, (L)arge, or (XL)arge
username     string    false     true       The username for the database server

Observed behavior

A long property description wraps strangely when longer than the terminal width.

Desired behavior

❯ rad resource-type show Radius.Resources/postgreSQL 
TYPE                         NAMESPACE
Radius.Resources/postgreSQL  Radius.Resources

DESCRIPTION:
A standard PostgreSQL database server with a single database created
API VERSION: 2023-10-01-preview

TOP-LEVEL PROPERTIES:

NAME         TYPE      REQUIRED  READ-ONLY  DESCRIPTION
application  string    false     false      
database     string    false     true       The name of the database
environment  string    false     false      
host         string    false     true       The host name of the database server
password     string    false     true       The password for the database server
port         string    false     true       The port number of the database server
size         string    false     false      The size of the PostgreSQL database, non production environments can be
                                            (S)mall or (M)edium, production environments can be or (S)mall, (M)edium, 
                                            (L)arge, or (XL)arge
username     string    false     true       The username for the database server

### Workaround

_No response_

### rad Version

 rad version                                        
CLI Version Information:
RELEASE   VERSION   BICEP     COMMIT
edge      78b74f0   0.36.1    78b74f0c85e127c350872eaa02c3d6932528ee37

Control Plane Information:
STATUS     VERSION
Installed  0.42.42-dev

### Operating system

_No response_

### Additional context

_No response_

### Would you like to support us?

- [ ] Yes, I would like to support you

[AB#16107](https://dev.azure.com/azure-octo/e61041b4-555f-47ae-95b2-4f8ab480ea57/_workitems/edit/16107)

Metadata

Metadata

Labels

bugSomething is broken or not working as expectedtriagedThis issue has been reviewed and triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions