Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write polling animation to stdout instead of stderr #6370

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MD-V
Copy link

@MD-V MD-V commented Jun 6, 2023


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

az containerapp revision copy

General Guidelines

  • [] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

@azure-client-tools-bot-prd
Copy link

Hi @MD-V,
If you want to release the new extension version.
Please write the description of changes into HISTORY.rst and update setup.py.

@ghost ghost added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Jun 6, 2023
@ghost
Copy link

ghost commented Jun 6, 2023

Thank you for your contribution MD-V! We will review the pull request and get back to you soon.

@yonzhan
Copy link
Collaborator

yonzhan commented Jun 6, 2023

Thank you for your contribution! We will review the pull request and get back to you soon.

@ghost ghost requested a review from yonzhan June 6, 2023 06:53
@ghost ghost added the Auto-Assign Auto assign by bot label Jun 6, 2023
@ghost ghost requested review from wangzelin007 and yanzhudd June 6, 2023 06:53
@ghost ghost assigned zhoxing-ms Jun 6, 2023
@ghost ghost added the ContainerApp label Jun 6, 2023
@ghost ghost requested review from zhoxing-ms and jsntcy June 6, 2023 06:53
sys.stderr.write('\r')
sys.stderr.write(self.tickers[self.currTicker] + " Running ..")
sys.stderr.flush()
sys.stdout.write('\r')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

according to https://github.com/Azure/azure-cli/blob/dev/doc/command_guidelines.md#general-patterns, only command output can go to stdout, and everything else should go to stderr (log/status/errors).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot ContainerApp customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants