Azure / autorest.powershell

AutoRest PowerShell Generator
MIT License
113 stars 86 forks source link

Implement sanitizer handler for autorest modules #1320

Closed vidai-msft closed 8 months ago

vidai-msft commented 8 months ago

This pull request introduces several changes to the PowerShell cmdlets and module classes in the powershell/cmdlets/class.ts, powershell/generators/psm1.ts, and powershell/module/module-class.ts files. The changes mainly focus on implementing telemetry and output sanitization features. The most significant changes include the addition of a new NewImplementWriteObject method, the introduction of new delegates for sanitizing output and getting telemetry information, and the inclusion of these delegates in the CmdletClass and NewModuleClass.

Telemetry and Output Sanitization:

New Delegates:

vidai-msft commented 8 months ago

@dolauli added condition to only generate code for Azure modules. BTW, Az.Accounts update has been merged.

dolauli commented 8 months ago

/azp run

azure-pipelines[bot] commented 8 months ago
Azure Pipelines successfully started running 3 pipeline(s).