Comments (6)
There's already color output in the CLI. -o jsonc
from azure-cli-extensions.
@tjprescott understood, this issue is not for the platform, the webapp new command doesn't use the color output of the CLI, this issue is used to track the addition of colors in the command
from azure-cli-extensions.
the webapp new command doesn't use the color output of the CLI
@ahmedelnably Can you clarify what you mean by this? The CLI infrastructure is what determines the output type of commands. As long as the user specifies -o jsonc
, they would see json colored output.
from azure-cli-extensions.
I think I misspoke there, we want to use specific colors depending on the output we are showing to the user. This is mainly related on how the output of the command is formatted and colored.
from azure-cli-extensions.
we want to use specific colors depending on the output we are showing to the user
Would still like clarification on this before it is implemented if there is a plan to implement this soon.
As a core part of the CLI, commands do not / should not have control of changing outputs. This should be left up to the user.
This is mainly related on how the output of the command is formatted and colored.
Still don't fully understand this.
from azure-cli-extensions.
Currently, this command prints progress and a JSON representation of the resources created. It does this only using logger.warning
and doesn't return anything from the command, so there's nothing that can be formatted using -o
. Example:
bash-4.3# az webapp new -n test-webapp-new
Creating Resource group 'appsvc_rg_Windows_CentralUS' ...
Resource group creation complete
Creating App service plan 'appsvc_asp_Windows_CentralUS' ...
App service plan creation complete
Creating app 'test-webapp-new' ....
Webapp creation complete
Updating app settings to enable build after deployment
Creating zip with contents of dir /app/foo ...
Deploying and building contents to app.This operation can take some time to finish...
All done. {
"location": "Central US",
"name": "test-webapp-new",
"os": "Windows",
"resourcegroup": "appsvc_rg_Windows_CentralUS ",
"serverfarm": "appsvc_asp_Windows_CentralUS",
"sku": "FREE",
"src_path": "/app/foo ",
"version_detected": "2.0",
"version_to_create": "dotnetcore|2.0"
}
IMHO, if this command prints JSON, it should return it as an object so that the user can format it with -o
and use --query
, etc. If the goal is to output nothing that can be formatted and print all output with logger.warning
, what is printed should be human readable, not JSON.
from azure-cli-extensions.
Related Issues (20)
- BMSUserErrorInvalidInput in az dataprotection backup-instance adhoc-backup for Kubernetes Service HOT 2
- [az containerapp compose create] Docker Compose seems like not understand special variable: $AZURE_CONTAINERAPPS_ENV_DEFAULT_DOMAIN HOT 3
- Support --allow-insecure option in az containerapp compose create command HOT 4
- [az containerapp compose create] Support to enable Managed Identities for accessing to Azure App Configuration HOT 2
- [ az ml online-endpoint create ] can not create an Endpoint with a previously used name. HOT 1
- [az confcom acipolicygen] Command raises a sys.exit() after generation of the policy HOT 1
- [az containerapp env certificate upload] Container Apps Environment - InternalServerError on adding a certificate via KeyVault and Managed Identity HOT 8
- AttributeError: module 'azure.core.pipeline.policies' has no attribute 'SensitiveHeaderCleanupPolicy' HOT 2
- Unable to utilize the az ml workspace update command HOT 7
- {Package} Upgrade setuptools and wheel to the latest version. HOT 2
- `az monitor data-collection rule update` fails updating stream declaration HOT 2
- [Bug]: `az network bastion ssh` does not allow configuration of ssh-client-folder HOT 3
- [az storage azcopy blob download] Expose azcopy's `--overwrite` parameter HOT 1
- serviceconnector-passwordless fails for sql HOT 8
- vm-repair: Invalid image "UbuntuLTS" HOT 3
- az network bastion create --vnet-name does not accept resource Id HOT 1
- az connectedk8s proxy fails with bad CPU on Mac M3 HOT 3
- `az extension list-available` is super slow - Store index.json somewhere else? HOT 2
- Preview versions in `index.json` is not valid semantic versions HOT 2
- Az Network Bastion RDP --configure switch HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-cli-extensions.