Skip to content

Commit fa94f8a

Browse files
[skip ci] Archive 39ba4b7 (#28015)
1 parent 39ba4b7 commit fa94f8a

38 files changed

+385
-79
lines changed

generated/ComputeSchedule/ComputeSchedule.AutoRest/Az.ComputeSchedule.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<PsModuleName>ComputeSchedule</PsModuleName>
44
<PsRootModuleName>ComputeSchedule</PsRootModuleName>
5-
<PsModuleFolder>ComputeSchedule.AutoRest</PsModuleFolder>
5+
<PsModuleFolder>ComputeSchedule.Autorest</PsModuleFolder>
66
</PropertyGroup>
77

88
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.autorest.props" />
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ComputeSchedule")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.1")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

generated/ComputeSchedule/ComputeSchedule.AutoRest/exports/Get-AzComputeScheduleOperationError.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ begin {
108108
$PSBoundParameters['OutBuffer'] = 1
109109
}
110110
$parameterSet = $PSCmdlet.ParameterSetName
111+
112+
$testPlayback = $false
113+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ComputeSchedule.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
114+
115+
$context = Get-AzContext
116+
if (-not $context -and -not $testPlayback) {
117+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
118+
exit
119+
}
111120

112121
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
113122
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -130,8 +139,6 @@ begin {
130139
GetExpanded = 'Az.ComputeSchedule.private\Get-AzComputeScheduleOperationError_GetExpanded';
131140
}
132141
if (('GetExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
133-
$testPlayback = $false
134-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ComputeSchedule.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
135142
if ($testPlayback) {
136143
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
137144
} else {
@@ -145,6 +152,9 @@ begin {
145152
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
146153
}
147154
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
155+
if ($wrappedCmd -eq $null) {
156+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
157+
}
148158
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
149159
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
150160
$steppablePipeline.Begin($PSCmdlet)

generated/ComputeSchedule/ComputeSchedule.AutoRest/exports/Get-AzComputeScheduleOperationStatus.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,15 @@ begin {
114114
$PSBoundParameters['OutBuffer'] = 1
115115
}
116116
$parameterSet = $PSCmdlet.ParameterSetName
117+
118+
$testPlayback = $false
119+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ComputeSchedule.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
120+
121+
$context = Get-AzContext
122+
if (-not $context -and -not $testPlayback) {
123+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
124+
exit
125+
}
117126

118127
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
119128
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -136,8 +145,6 @@ begin {
136145
GetExpanded1 = 'Az.ComputeSchedule.private\Get-AzComputeScheduleOperationStatus_GetExpanded1';
137146
}
138147
if (('GetExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
139-
$testPlayback = $false
140-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ComputeSchedule.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
141148
if ($testPlayback) {
142149
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
143150
} else {
@@ -151,6 +158,9 @@ begin {
151158
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
152159
}
153160
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
161+
if ($wrappedCmd -eq $null) {
162+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
163+
}
154164
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
155165
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
156166
$steppablePipeline.Begin($PSCmdlet)

generated/ComputeSchedule/ComputeSchedule.AutoRest/exports/Invoke-AzComputeScheduleExecuteDeallocate.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ begin {
126126
$PSBoundParameters['OutBuffer'] = 1
127127
}
128128
$parameterSet = $PSCmdlet.ParameterSetName
129+
130+
$testPlayback = $false
131+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ComputeSchedule.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
132+
133+
$context = Get-AzContext
134+
if (-not $context -and -not $testPlayback) {
135+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
136+
exit
137+
}
129138

130139
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
131140
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -148,8 +157,6 @@ begin {
148157
ExecuteExpanded = 'Az.ComputeSchedule.private\Invoke-AzComputeScheduleExecuteDeallocate_ExecuteExpanded';
149158
}
150159
if (('ExecuteExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
151-
$testPlayback = $false
152-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ComputeSchedule.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
153160
if ($testPlayback) {
154161
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
155162
} else {
@@ -163,6 +170,9 @@ begin {
163170
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
164171
}
165172
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
173+
if ($wrappedCmd -eq $null) {
174+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
175+
}
166176
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
167177
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
168178
$steppablePipeline.Begin($PSCmdlet)

generated/ComputeSchedule/ComputeSchedule.AutoRest/exports/Invoke-AzComputeScheduleExecuteHibernate.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ begin {
126126
$PSBoundParameters['OutBuffer'] = 1
127127
}
128128
$parameterSet = $PSCmdlet.ParameterSetName
129+
130+
$testPlayback = $false
131+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ComputeSchedule.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
132+
133+
$context = Get-AzContext
134+
if (-not $context -and -not $testPlayback) {
135+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
136+
exit
137+
}
129138

130139
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
131140
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -148,8 +157,6 @@ begin {
148157
ExecuteExpanded1 = 'Az.ComputeSchedule.private\Invoke-AzComputeScheduleExecuteHibernate_ExecuteExpanded1';
149158
}
150159
if (('ExecuteExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
151-
$testPlayback = $false
152-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ComputeSchedule.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
153160
if ($testPlayback) {
154161
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
155162
} else {
@@ -163,6 +170,9 @@ begin {
163170
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
164171
}
165172
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
173+
if ($wrappedCmd -eq $null) {
174+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
175+
}
166176
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
167177
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
168178
$steppablePipeline.Begin($PSCmdlet)

generated/ComputeSchedule/ComputeSchedule.AutoRest/exports/Invoke-AzComputeScheduleExecuteStart.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,15 @@ begin {
126126
$PSBoundParameters['OutBuffer'] = 1
127127
}
128128
$parameterSet = $PSCmdlet.ParameterSetName
129+
130+
$testPlayback = $false
131+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ComputeSchedule.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
132+
133+
$context = Get-AzContext
134+
if (-not $context -and -not $testPlayback) {
135+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
136+
exit
137+
}
129138

130139
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
131140
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -148,8 +157,6 @@ begin {
148157
ExecuteExpanded2 = 'Az.ComputeSchedule.private\Invoke-AzComputeScheduleExecuteStart_ExecuteExpanded2';
149158
}
150159
if (('ExecuteExpanded2') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
151-
$testPlayback = $false
152-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ComputeSchedule.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
153160
if ($testPlayback) {
154161
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
155162
} else {
@@ -163,6 +170,9 @@ begin {
163170
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
164171
}
165172
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
173+
if ($wrappedCmd -eq $null) {
174+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
175+
}
166176
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
167177
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
168178
$steppablePipeline.Begin($PSCmdlet)

generated/ComputeSchedule/ComputeSchedule.AutoRest/exports/Invoke-AzComputeScheduleSubmitDeallocate.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,15 @@ begin {
145145
$PSBoundParameters['OutBuffer'] = 1
146146
}
147147
$parameterSet = $PSCmdlet.ParameterSetName
148+
149+
$testPlayback = $false
150+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ComputeSchedule.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
151+
152+
$context = Get-AzContext
153+
if (-not $context -and -not $testPlayback) {
154+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
155+
exit
156+
}
148157

149158
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
150159
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -167,8 +176,6 @@ begin {
167176
SubmitExpanded = 'Az.ComputeSchedule.private\Invoke-AzComputeScheduleSubmitDeallocate_SubmitExpanded';
168177
}
169178
if (('SubmitExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
170-
$testPlayback = $false
171-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ComputeSchedule.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
172179
if ($testPlayback) {
173180
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
174181
} else {
@@ -182,6 +189,9 @@ begin {
182189
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
183190
}
184191
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
192+
if ($wrappedCmd -eq $null) {
193+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
194+
}
185195
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
186196
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
187197
$steppablePipeline.Begin($PSCmdlet)

generated/ComputeSchedule/ComputeSchedule.AutoRest/exports/Invoke-AzComputeScheduleSubmitHibernate.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,15 @@ begin {
145145
$PSBoundParameters['OutBuffer'] = 1
146146
}
147147
$parameterSet = $PSCmdlet.ParameterSetName
148+
149+
$testPlayback = $false
150+
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ComputeSchedule.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
151+
152+
$context = Get-AzContext
153+
if (-not $context -and -not $testPlayback) {
154+
Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
155+
exit
156+
}
148157

149158
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
150159
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -167,8 +176,6 @@ begin {
167176
SubmitExpanded1 = 'Az.ComputeSchedule.private\Invoke-AzComputeScheduleSubmitHibernate_SubmitExpanded1';
168177
}
169178
if (('SubmitExpanded1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
170-
$testPlayback = $false
171-
$PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.ComputeSchedule.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
172179
if ($testPlayback) {
173180
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
174181
} else {
@@ -182,6 +189,9 @@ begin {
182189
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
183190
}
184191
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
192+
if ($wrappedCmd -eq $null) {
193+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
194+
}
185195
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
186196
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
187197
$steppablePipeline.Begin($PSCmdlet)

0 commit comments

Comments
 (0)