autorest.az icon indicating copy to clipboard operation
autorest.az copied to clipboard

Rename group/command/parameter in one step

Open jsntcy opened this issue 4 years ago • 2 comments

Why do you need this feature?

Is your feature request related to a problem? Please describe.

Currently if you want to rename group: network express-route-circuit-connection to group: network express-route peering connection, you need set configuration as follows in readme.az.md

- where:
      group: network express-route-circuit-connection
    set:
      group: network express-route-peering-connection
  - where:
      group: network express-route-peering-connection
    set:
      group: network express-route peering-connection
  - where:
      group: network express-route peering-connection
    set:
      group: network express-route peering connection

Describe the solution you'd like

can we just config as follows to achieve the goal to make the config easier for us?

- where:
      group: network express-route-circuit-connection
    set:
      group: network express-route peering connection

Describe alternatives you've considered

Additional context

jsntcy avatar Mar 10 '21 09:03 jsntcy

If the group express-route-circuit-connection is originally come from swagger, then I think it has already been supported. If the group express-route-circuit-connection is from previous command layer directive, then I think the above directive won't work either

qiaozha avatar Mar 23 '21 06:03 qiaozha

@kairu-ms, please verify it works or not now.

jsntcy avatar Apr 21 '21 06:04 jsntcy