Azure / autorest.powershell

AutoRest PowerShell Generator
MIT License
112 stars 83 forks source link

Files generated by "model-cmdlet" will no be removed after "model-cmdlet" is removed. #1122

Closed YanaXu closed 1 year ago

YanaXu commented 1 year ago

In directive of "README.md", I add the following part:

  - model-cmdlet:
    - SqlVirtualMachine

After I run autorest and .\build-module.ps1, I find below files.

PS  \SqlVirtualMachine> ls -Recurse New-AzSqlVirtualMachineObject* | Resolve-Path -Relative
.\custom\autogen-model-cmdlets\New-AzSqlVirtualMachineObject.ps1
.\docs\New-AzSqlVirtualMachineObject.md
.\examples\New-AzSqlVirtualMachineObject.md
.\exports\New-AzSqlVirtualMachineObject.ps1
.\test\New-AzSqlVirtualMachineObject.Tests.ps1

I remove the model-cmdlet part from "README.md", and run autorest & build-module.ps1 again. These files are still there. It feels like the removal of "model-cmdlet" is not working. If these files are untouched, they should be removed somehow.

dolauli commented 1 year ago

We need to clean the custom\autogen-model-cmdlets folder when regenerating the module.

dolauli commented 1 year ago

Fixed in https://github.com/Azure/autorest.powershell/pull/1128.