Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
393 stars 187 forks source link

User-friendly `config.json` format #1091

Open weikanglim opened 1 year ago

weikanglim commented 1 year ago

config.json is currently formatted as nested JSON object:

{
"auth": {
 "account": {
    "currentUser": {
       "homeAccountId":"",
       "tenantId":"",
       "clientId":""
     }
  }
}
}

This is perfectly fine for most applications, but I wonder if we want a more user-friendly format for CLI users to be able to edit directly. I would lean towards having a single nesting like VSCode:

"auth.account.currentUser": {
       "homeAccountId":"",
       "tenantId":"",
       "clientId":""
}

Basically, only one-level of object nesting is allowed. Set(key string, value [map or primitive])

_Originally posted by @weikanglim in https://github.com/Azure/azure-dev/pull/1022#discussion_r1014235810_

vhvb1989 commented 1 year ago

My 50 cents:

rajeshkamal5050 commented 1 year ago

@vhvb1989 can you take a look at this issue?

rajeshkamal5050 commented 1 year ago

@savannahostrowski @ellismg Not in scope for GA. Moving this to Gallium.