This pull request includes changes to the CmdletClass in the powershell/cmdlets/class.ts file. The changes primarily focus on improving the handling of telemetry information and warnings related to the display of secrets.
Key changes:
[powershell/cmdlets/class.ts]: Added a new line to retrieve the ShowSecretsWarning value from telemetryInfo. This value is then used to control whether a warning about displaying secrets is shown. The conditional statement for displaying the warning has been updated to check the ShowSecretsWarning value instead of checking if sanitizedProperties is not null or empty. If ShowSecretsWarning is "true", it checks if sanitizedProperties is null or empty. If it is, a general warning about showing secrets is displayed. Otherwise, a detailed warning about showing specific secrets is displayed.
This pull request includes changes to the
CmdletClass
in thepowershell/cmdlets/class.ts
file. The changes primarily focus on improving the handling of telemetry information and warnings related to the display of secrets.Key changes:
powershell/cmdlets/class.ts
]: Added a new line to retrieve theShowSecretsWarning
value fromtelemetryInfo
. This value is then used to control whether a warning about displaying secrets is shown. The conditional statement for displaying the warning has been updated to check theShowSecretsWarning
value instead of checking ifsanitizedProperties
is not null or empty. IfShowSecretsWarning
is "true", it checks ifsanitizedProperties
is null or empty. If it is, a general warning about showing secrets is displayed. Otherwise, a detailed warning about showing specific secrets is displayed.