-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from rymir75/master
Sorting parameters by position, then by required, and then by name in syntax generation.
- Loading branch information
Showing
4 changed files
with
87 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
XmlDoc2CmdletDoc.TestModule/PositionedParameters/TestPositionedParametersCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using System.Management.Automation; | ||
|
||
namespace XmlDoc2CmdletDoc.TestModule.PositionedParameters | ||
{ | ||
/// <summary> | ||
/// <para type="synopsis">This is part of the Test-PositionedParameters synopsis.</para> | ||
/// <para type="description">This is part of the Test-PositionedParameters description.</para> | ||
/// </summary> | ||
[Cmdlet(VerbsDiagnostic.Test, "PositionedParameters")] | ||
public class TestPositionedParametersCommand : Cmdlet | ||
{ | ||
/// <summary> | ||
/// <para type="description">This is part of the ParameterA description.</para> | ||
/// </summary> | ||
[Parameter(Position = 3)] | ||
public string ParameterA { get; set; } | ||
|
||
/// <summary> | ||
/// <para type="description">This is part of the ParameterB description.</para> | ||
/// </summary> | ||
[Parameter(Position = 2)] | ||
public string ParameterB { get; set; } | ||
|
||
/// <summary> | ||
/// <para type="description">This is part of the ParameterC description.</para> | ||
/// </summary> | ||
[Parameter(Position = 0)] | ||
public string ParameterC { get; set; } | ||
|
||
/// <summary> | ||
/// <para type="description">This is part of the ParameterD description.</para> | ||
/// </summary> | ||
[Parameter(Position = 1)] | ||
public string ParameterD { get; set; } | ||
|
||
/// <summary> | ||
/// <para type="description">This is part of the ParameterE description.</para> | ||
/// </summary> | ||
[Parameter] | ||
public string ParameterE { get; set; } | ||
|
||
/// <summary> | ||
/// <para type="description">This is part of the ParameterF description.</para> | ||
/// </summary> | ||
[Parameter(Mandatory = true)] | ||
public string ParameterF { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters