@autorest/powershell 4.0.654 → 4.0.656
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"powershell/models/model-extensions.ts": "f0c617b9bfb04b4424a853e1b1eecba9059ba788",
|
|
76
76
|
"powershell/module/module-class.ts": "327af665b5d81e4cc1b8fa9da7382e9c73300de5",
|
|
77
77
|
"powershell/module/module-namespace.ts": "f6afc90087e8d733f0323b0de8ba41d923955732",
|
|
78
|
-
"powershell/package.json": "
|
|
78
|
+
"powershell/package.json": "1acb09e9e7c5c41e562b7c13732145923eac321b",
|
|
79
79
|
"powershell/plugins/add-azure-completers-v2.ts": "3b1ddf7a067dbac2f07561fb3f6cbf1b66e555aa",
|
|
80
80
|
"powershell/plugins/create-commands-v2.ts": "915b737aad5f455a9cd0aa4e08034349a2de8ea0",
|
|
81
81
|
"powershell/plugins/cs-namer-v2.ts": "1b64031416f18b604950012b5683758adefce535",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"powershell/resources/assets/export-surface.ps1": "836175c819a8e55a8318c9b12f7c976fdaec8ea7",
|
|
104
104
|
"powershell/resources/assets/exports/README.md": "c8a90f9d2e9134c3366ae18eb6f2d5f169a8ee4b",
|
|
105
105
|
"powershell/resources/assets/generate-help.ps1": "1cec43282a5211ed030759f35515b562421f014f",
|
|
106
|
-
"powershell/resources/assets/generate-portal-ux.ps1": "
|
|
106
|
+
"powershell/resources/assets/generate-portal-ux.ps1": "a38f0eb67b8a11fd6362f4608572e4e88e941641",
|
|
107
107
|
"powershell/resources/assets/how-to.md": "a2fc9c53d35275e0e4cd8423e4e194744d359afd",
|
|
108
108
|
"powershell/resources/assets/internal/README.md": "ec115a67f403df03f07892213b3b9e83867cdd41",
|
|
109
109
|
"powershell/resources/assets/license.txt": "b9f3180fb9aff09aa7665db6b3226e492f670be6",
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
"powershell/resources/psruntime/BuildTime/Models/PsHelpMarkdownOutputs.cs": "056be554968d76667c0659d169f674ef5dbb74ed",
|
|
229
229
|
"powershell/resources/psruntime/BuildTime/Models/PsHelpTypes.cs": "34d832146757eab7d8e1bd3feba5d411577f388a",
|
|
230
230
|
"powershell/resources/psruntime/BuildTime/Models/PsMarkdownTypes.cs": "c2c068932d2e4ab31a46d566e7b24f357f68c6f8",
|
|
231
|
-
"powershell/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs": "
|
|
231
|
+
"powershell/resources/psruntime/BuildTime/Models/PsProxyOutputs.cs": "e41b8195833c3b718eba5887e7aae1b5c8a54600",
|
|
232
232
|
"powershell/resources/psruntime/BuildTime/Models/PsProxyTypes.cs": "7dda8178ef7773527484483abd6a4e43bc4ff5a8",
|
|
233
233
|
"powershell/resources/psruntime/BuildTime/PsAttributes.cs": "06d994f77ab1052048edccf0d2b6ba7e6021ce0a",
|
|
234
234
|
"powershell/resources/psruntime/BuildTime/PsExtensions.cs": "52083232ddc161a0f41496cbdf979d709c490194",
|
package/package.json
CHANGED
|
@@ -14,23 +14,6 @@ if(-not $NotIsolated) {
|
|
|
14
14
|
return
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
$exportsFolder = Join-Path $PSScriptRoot '${$lib.path.relative($project.baseFolder, $project.exportsFolder)}'
|
|
18
|
-
if(-not (Test-Path $exportsFolder)) {
|
|
19
|
-
Write-Error "Exports folder '$exportsFolder' was not found."
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
$directories = Get-ChildItem -Directory -Path $exportsFolder
|
|
23
|
-
$hasProfiles = ($directories | Measure-Object).Count -gt 0
|
|
24
|
-
if(-not $hasProfiles) {
|
|
25
|
-
$directories = Get-Item -Path $exportsFolder
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
$docsFolder = Join-Path $PSScriptRoot '${$lib.path.relative($project.baseFolder, $project.docsFolder)}'
|
|
29
|
-
if(Test-Path $docsFolder) {
|
|
30
|
-
$null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
|
|
31
|
-
}
|
|
32
|
-
$null = New-Item -ItemType Directory -Force -Path $docsFolder -ErrorAction SilentlyContinue
|
|
33
|
-
|
|
34
17
|
$moduleName = '${$project.moduleName}'
|
|
35
18
|
$rootModuleName = '${$project.rootModuleName}'
|
|
36
19
|
if ($rootModuleName -eq "")
|
|
@@ -206,12 +206,13 @@ namespace Microsoft.Rest.ClientRuntime.PowerShell
|
|
|
206
206
|
|
|
207
207
|
public string GetProcessCustomAttributesAtRuntime()
|
|
208
208
|
{
|
|
209
|
-
return VariantGroup.IsInternal ? "" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]
|
|
209
|
+
return VariantGroup.IsInternal ? "" : IsAzure ? $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]
|
|
210
210
|
{Indent}{Indent}[Microsoft.Message.ClientRuntime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
|
|
211
211
|
{Indent}{Indent}if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Message.ClientRuntime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){{
|
|
212
212
|
{Indent}{Indent}{Indent}[Microsoft.Message.ClientRuntime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
|
|
213
213
|
{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
|
|
214
|
-
{Indent}{Indent}}}"
|
|
214
|
+
{Indent}{Indent}}}" : $@"{Indent}{Indent}$cmdInfo = Get-Command -Name $mapping[$parameterSet]{Environment.NewLine}{Indent}{Indent}[Microsoft.Message.ClientRuntime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
|
|
215
|
+
{Indent}{Indent}[Microsoft.Message.ClientRuntime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)";
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
private string GetTelemetry()
|