Azure / Azure/azure-devops-cli-extension

Console output color for warning message isn't set back after warning is emitted

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

Description

### **This is autogenerated. Please review and update as needed.**

## Describe the bug

**Command Name**
`az repos list
Extension Name: azure-devops. Version: 0.17.0.`

**Errors:**

## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

- _Put any pre-requisite steps here..._
- `az repos list --query {} --output {}`

## Expected Behavior

## Environment Summary
```
Windows-10-10.0.19041-SP0
Python 3.6.6
Installer: MSI

azure-cli 2.3.0 *

Extensions:
azure-devops 0.17.0

```
## Additional Context

I'm pretty sure this issue is with Azure CLI, not the azure-devops extension because it happens when using Azure CLI 2.3.0 but not 2.1.0 and the version of azure-devops was the same both times.
When I execute the az repos list command (when using Azure CLI 2.3.0), it emits a warning to the console before outputting the JSON text. The warning text is printed in a yellow color. However, the console color doesn't change back to the normal text color after the warning message is printed, so all output after that stays in the yellow color, including the command prompt and all future console output.

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.