Add output types to Format commands (#18746)

This commit is contained in:
MartinGC94
2022-12-13 10:40:35 +05:00
committed by GitHub
parent e7c68af8bb
commit b6f83e7520
4 changed files with 8 additions and 4 deletions
@@ -8,9 +8,10 @@ using Microsoft.PowerShell.Commands.Internal.Format;
namespace Microsoft.PowerShell.Commands
{
/// <summary>
/// Implementation for the format-table command.
/// Implementation for the Format-List command.
/// </summary>
[Cmdlet(VerbsCommon.Format, "List", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=2096928")]
[OutputType(typeof(FormatStartData), typeof(FormatEntryData), typeof(FormatEndData), typeof(GroupStartData), typeof(GroupEndData))]
public class FormatListCommand : OuterFormatTableAndListBase
{
/// <summary>
@@ -8,9 +8,10 @@ using Microsoft.PowerShell.Commands.Internal.Format;
namespace Microsoft.PowerShell.Commands
{
/// <summary>
/// Implementation for the format-custom command. It just calls the formatting engine on complex shape.
/// Implementation for the Format-Custom command. It just calls the formatting engine on complex shape.
/// </summary>
[Cmdlet(VerbsCommon.Format, "Custom", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=2096929")]
[OutputType(typeof(FormatStartData), typeof(FormatEntryData), typeof(FormatEndData), typeof(GroupStartData), typeof(GroupEndData))]
public class FormatCustomCommand : OuterFormatShapeCommandBase
{
/// <summary>
@@ -8,9 +8,10 @@ using Microsoft.PowerShell.Commands.Internal.Format;
namespace Microsoft.PowerShell.Commands
{
/// <summary>
/// Implementation for the format-table command.
/// Implementation for the Format-Table command.
/// </summary>
[Cmdlet(VerbsCommon.Format, "Table", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=2096703")]
[OutputType(typeof(FormatStartData), typeof(FormatEntryData), typeof(FormatEndData), typeof(GroupStartData), typeof(GroupEndData))]
public class FormatTableCommand : OuterFormatTableBase
{
/// <summary>
@@ -10,9 +10,10 @@ using Microsoft.PowerShell.Commands.Internal.Format;
namespace Microsoft.PowerShell.Commands
{
/// <summary>
/// Implementation for the format-table command.
/// Implementation for the Format-Wide command.
/// </summary>
[Cmdlet(VerbsCommon.Format, "Wide", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=2096930")]
[OutputType(typeof(FormatStartData), typeof(FormatEntryData), typeof(FormatEndData), typeof(GroupStartData), typeof(GroupEndData))]
public class FormatWideCommand : OuterFormatShapeCommandBase
{
/// <summary>