Skip to content
This repository was archived by the owner on Feb 4, 2019. It is now read-only.

Commit a15926c

Browse files
committed
update GetCommandCommand output types to match PowerShell on WS2012R2
1 parent aa0479f commit a15926c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/ReferenceTests/Commands/GetCommandTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void OutputTypeForClearVariableCommand()
4545
[TestCase("Convert-Path", new[] { typeof(string) })]
4646
[TestCase("ConvertTo-Csv", new[] { typeof(string) })]
4747
[TestCase("Get-ChildItem", new[] { typeof(FileInfo), typeof(DirectoryInfo) })]
48-
[TestCase("Get-Command", new[] { typeof(AliasInfo), typeof(ApplicationInfo), typeof(FunctionInfo), typeof(CmdletInfo), typeof(ExternalScriptInfo), typeof(FilterInfo), typeof(WorkflowInfo), typeof(String) })]
48+
[TestCase("Get-Command", new[] { typeof(AliasInfo), typeof(ApplicationInfo), typeof(FunctionInfo), typeof(CmdletInfo), typeof(ExternalScriptInfo), typeof(FilterInfo), typeof(WorkflowInfo), typeof(String), typeof(PSObject) })]
4949
[TestCase("Get-Content", new[] { typeof(byte), typeof(string) })]
5050
[TestCase("Get-Date", new[] { typeof(string), typeof(DateTime) })]
5151
[TestCase("Get-History", new[] { typeof(HistoryInfo) })]

Source/System.Management/Microsoft.PowerShell/Commands/GetCommandCommand.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace Microsoft.PowerShell.Commands
88
{
99
[Cmdlet(VerbsCommon.Get, "Command", DefaultParameterSetName = "CmdletSet")]
10-
[OutputType(typeof(AliasInfo), typeof(ApplicationInfo), typeof(FunctionInfo), typeof(CmdletInfo), typeof(ExternalScriptInfo), typeof(FilterInfo), typeof(WorkflowInfo), typeof(String))]
10+
[OutputType(typeof(AliasInfo), typeof(ApplicationInfo), typeof(FunctionInfo), typeof(CmdletInfo), typeof(ExternalScriptInfo), typeof(FilterInfo), typeof(WorkflowInfo), typeof(String), typeof(PSObject))]
1111
public sealed class GetCommandCommand : PSCmdlet
1212
{
1313
[AllowEmptyCollection]

0 commit comments

Comments
 (0)