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

Provide a way to call a method and not output anything, maybe something like: "-o none" #5667

Open
jongio opened this Issue Feb 26, 2018 · 4 comments

Comments

3 participants
@jongio

jongio commented Feb 26, 2018

It would be great to have -o "none" option, that doesn't print anything from the command.

I'm scripting az login and don't want it to print the subs after login.

@jongio

This comment has been minimized.

jongio commented Feb 26, 2018

Here's a hack I came up with:

az login --query "[?n]|[0]"

@tjprescott

This comment has been minimized.

Member

tjprescott commented Feb 26, 2018

You could also pipe your output to null.

@jongio

This comment has been minimized.

jongio commented Feb 26, 2018

@tjprescott - do you know of a good safe cross-plat way to do that?

@andreacassioli

This comment has been minimized.

andreacassioli commented Nov 4, 2018

I have just got in this issue creating storage accounts. There is a lot of output that pollute my scripts. Of source I can pipe the output or use the query, but it is so common to have a flag to silence a cli, and it is more readable and portable.
This should be a common option to all az cli commands. I think either

  • there is a --quite flag
  • or the --verbose flag accept a verbosity level.

@tjprescott tjprescott added this to Triage in Interactive End User Experience via automation Nov 29, 2018

@tjprescott tjprescott added this to Triage in Scripting End User Experience via automation Nov 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment