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

Add quiet mode #6341

Closed
udf2457 opened this issue May 13, 2018 · 5 comments
Closed

Add quiet mode #6341

udf2457 opened this issue May 13, 2018 · 5 comments
Assignees
Labels
Core CLI core infrastructure Discussion Output
Milestone

Comments

@udf2457
Copy link

udf2457 commented May 13, 2018

For use in scripts, it would be nice to have a "quiet mode" (i.e that only outputs to stderr on error rather than the more verbose present style)

@tjprescott
Copy link
Member

The CLI is already designed to be quiet. What verbose style are you referring to? A specific command?

@udf2457
Copy link
Author

udf2457 commented May 14, 2018

I'm more referring to the typical Linux definition of quiet (i.e. only make noise if there's something wrong).

For example, you would expect az storage blob upload --no-progress to be pretty quiet, but it still blurts out content on success but all I'm really interested in is whether or not the upload was successful, which means at the moment I'm forced to > /dev/null 2>&1

Or the same with a clean-up command such as:
az storage blob delete-batch -s "${azureContainer}" --delete-snapshots include --if-unmodified-since "${timeDelta}"

I don't really care for output if the clean-up was succesful, I only want to hear about failures.

@mattbits
Copy link

duplicate of #5667

@yonzhan yonzhan added this to the S165 milestone Dec 22, 2019
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 22, 2019

add to S165.

@yonzhan yonzhan added the Core CLI core infrastructure label Dec 25, 2019
@yonzhan yonzhan modified the milestones: S165, S166 Feb 15, 2020
@jiasli jiasli modified the milestones: S166, Backlog Feb 18, 2020
@jiasli
Copy link
Member

jiasli commented Mar 24, 2020

We have added option --only-show-errors in #12604 to disable warnings that are written to stderr. It will be included in S167 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core CLI core infrastructure Discussion Output
Projects
None yet
Development

No branches or pull requests

6 participants