Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,8 @@ protected override void BeginProcessing()
/// </summary>
Comment thread
SteveL-MSFT marked this conversation as resolved.
protected override void ProcessRecord()
{
_commandsWritten.Clear();

// Module and FullyQualifiedModule should not be specified at the same time.
// Throw out terminating error if this is the case.
if (_isModuleSpecified && _isFullyQualifiedModuleSpecified)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,10 @@ Describe "Get-Command Tests" -Tags "CI" {
VerifyDynamicParametersExist -cmdlet $results[0] -parameterNames $paramName
VerifyParameterType -cmdlet $results[0] -parameterName $paramName -ParameterType System.Text.Encoding
}

It "Piping more than one CommandInfo works" {
$result = Get-Command -Name Add-Content, Get-Content | Get-Command
$result.Count | Should -Be 2
$result.Name | Should -Be "Add-Content","Get-Content"
}
}