Azure / Azure/azure-devops-cli-extension

[Feature Request] - `variable-group create` to support multiline `--description`

Open
#1,224 3 comments 2 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

**Is your feature request related to a problem? Please describe.**
When creating a variable-group, I would like to add a multi-line description. I have tried the following

```ps1
# Using \n: Results in "line 1\n Line2"
az pipelines variable-group create --name 'myVariableGroup' --variables 'hello=world' --description "line 1\n Line2"

# Using \\n: Results in "line 1\\n Line2"
az pipelines variable-group create --name 'myVariableGroup' --variables 'hello=world' --description "line 1\n Line2"

# Using `n: Results in "line 1"
az pipelines variable-group create --name 'myVariableGroup' --variables 'hello=world' --description "line 1`nLine2"

# Using --description twice: Results in "line2"
az pipelines variable-group create --name 'myVariableGroup' --variables 'hello=world' --description "line 1" --description "Line2"

# Using `n: Results in error - I suspect the `n is treated as an enter / end of command.
az pipelines variable-group create --name 'myVariableGroup' --description "line 1`nLine2" --variables 'hello=world'

```
**Describe the solution you'd like**
I would like the `--description` to honor either `\n` or support multi-line comments in any way.

**Additional context**
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.