Skip to content

Commit ec678be

Browse files
kvprasoonTravisEz13
authored andcommitted
Implementation of -lp alias for -LiteralPath variable #6732 (#6770)
Implementation of -lp alias for -LiteralPath variable for issue #6732 Add-Content Add-Type Clear-Content Clear-Item Clear-ItemProperty Convert-Path Copy-Item Export-Alias Export-Clixml Export-Csv Export-FormatData Format-Hex Get-ChildItem Get-Content Get-FileHash Get-Item Get-ItemProperty Get-ItemPropertyValue Import-Alias Import-Clixml Import-Csv Import-PowerShellDataFile Move-Item Out-File Push-Location Remove-Item Rename-Item Resolve-Path Select-String Select-Xml Set-Content Set-Item Set-ItemProperty Set-Location Split-Path Start-Job Start-Transcript Tee-Object Test-Path Unblock-File
1 parent 84344cb commit ec678be

32 files changed

Lines changed: 45 additions & 45 deletions

src/Microsoft.PowerShell.Commands.Management/commands/management/ClearPropertyCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public string[] Path
3939
/// </summary>
4040
[Parameter(ParameterSetName = "LiteralPath",
4141
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
42-
[Alias("PSPath")]
42+
[Alias("PSPath","LP")]
4343
public string[] LiteralPath
4444
{
4545
get

src/Microsoft.PowerShell.Commands.Management/commands/management/ContentCommandBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class ContentCommandBase : CoreCommandWithCredentialsBase, IDisposable
3030
/// </summary>
3131
[Parameter(ParameterSetName = "LiteralPath",
3232
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
33-
[Alias("PSPath")]
33+
[Alias("PSPath","LP")]
3434
public string[] LiteralPath
3535
{
3636
get { return Path; }

src/Microsoft.PowerShell.Commands.Management/commands/management/ConvertPathCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public string[] Path
4141
/// </summary>
4242
[Parameter(ParameterSetName = "LiteralPath",
4343
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
44-
[Alias("PSPath")]
44+
[Alias("PSPath","LP")]
4545
public string[] LiteralPath
4646
{
4747
get

src/Microsoft.PowerShell.Commands.Management/commands/management/CopyPropertyCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public string[] Path
3131
/// </summary>
3232
[Parameter(ParameterSetName = "LiteralPath",
3333
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
34-
[Alias("PSPath")]
34+
[Alias("PSPath","LP")]
3535
public string[] LiteralPath
3636
{
3737
get { return paths; }

src/Microsoft.PowerShell.Commands.Management/commands/management/GetChildrenCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public string[] Path
5353
/// </summary>
5454
[Parameter(ParameterSetName = literalChildrenSet,
5555
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
56-
[Alias("PSPath")]
56+
[Alias("PSPath","LP")]
5757
public string[] LiteralPath
5858
{
5959
get

src/Microsoft.PowerShell.Commands.Management/commands/management/GetPropertyCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public string[] Path
3939
/// </summary>
4040
[Parameter(ParameterSetName = "LiteralPath",
4141
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
42-
[Alias("PSPath")]
42+
[Alias("PSPath","LP")]
4343
public string[] LiteralPath
4444
{
4545
get
@@ -197,7 +197,7 @@ public string[] Path
197197
/// Gets or sets the literal path parameter to the command
198198
/// </summary>
199199
[Parameter(ParameterSetName = "LiteralPath", Mandatory = true, ValueFromPipelineByPropertyName = true)]
200-
[Alias("PSPath")]
200+
[Alias("PSPath","LP")]
201201
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
202202
public string[] LiteralPath
203203
{

src/Microsoft.PowerShell.Commands.Management/commands/management/MovePropertyCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public string[] Path
3232
/// </summary>
3333
[Parameter(ParameterSetName = "LiteralPath",
3434
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
35-
[Alias("PSPath")]
35+
[Alias("PSPath","LP")]
3636
public string[] LiteralPath
3737
{
3838
get { return paths; }

src/Microsoft.PowerShell.Commands.Management/commands/management/Navigation.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ public string Path
757757
/// </summary>
758758
[Parameter(ParameterSetName = literalPathSet,
759759
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
760-
[Alias("PSPath")]
760+
[Alias("PSPath","LP")]
761761
public string LiteralPath
762762
{
763763
get
@@ -937,7 +937,7 @@ public string Path
937937
/// </summary>
938938
[Parameter(ParameterSetName = "LiteralPath",
939939
ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
940-
[Alias("PSPath")]
940+
[Alias("PSPath","LP")]
941941
public string LiteralPath
942942
{
943943
get
@@ -2059,7 +2059,7 @@ public string[] Path
20592059
/// </summary>
20602060
[Parameter(ParameterSetName = "LiteralPath",
20612061
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
2062-
[Alias("PSPath")]
2062+
[Alias("PSPath","LP")]
20632063
public string[] LiteralPath
20642064
{
20652065
get
@@ -2426,7 +2426,7 @@ public string[] Path
24262426
/// </summary>
24272427
[Parameter(ParameterSetName = "LiteralPath",
24282428
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
2429-
[Alias("PSPath")]
2429+
[Alias("PSPath","LP")]
24302430
public string[] LiteralPath
24312431
{
24322432
get { return _paths; }
@@ -2643,7 +2643,7 @@ public string[] Path
26432643
/// </summary>
26442644
[Parameter(ParameterSetName = "LiteralPath",
26452645
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
2646-
[Alias("PSPath")]
2646+
[Alias("PSPath","LP")]
26472647
public string[] LiteralPath
26482648
{
26492649
get
@@ -3117,7 +3117,7 @@ public string[] Path
31173117
/// </summary>
31183118
[Parameter(ParameterSetName = "LiteralPath",
31193119
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
3120-
[Alias("PSPath")]
3120+
[Alias("PSPath","LP")]
31213121
public string[] LiteralPath
31223122
{
31233123
get { return _paths; }
@@ -3507,7 +3507,7 @@ public string Path
35073507
/// Gets or sets the literal path property
35083508
/// </summary>
35093509
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = "ByLiteralPath")]
3510-
[Alias("PSPath")]
3510+
[Alias("PSPath","LP")]
35113511
public string LiteralPath
35123512
{
35133513
get { return _path; }
@@ -3801,7 +3801,7 @@ public string[] Path
38013801
/// </summary>
38023802
[Parameter(ParameterSetName = "LiteralPath",
38033803
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
3804-
[Alias("PSPath")]
3804+
[Alias("PSPath","LP")]
38053805
public string[] LiteralPath
38063806
{
38073807
get { return _paths; }
@@ -4074,7 +4074,7 @@ public string[] Path
40744074
/// </summary>
40754075
[Parameter(ParameterSetName = "LiteralPath",
40764076
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
4077-
[Alias("PSPath")]
4077+
[Alias("PSPath","LP")]
40784078
public string[] LiteralPath
40794079
{
40804080
get
@@ -4305,7 +4305,7 @@ public string[] Path
43054305
/// </summary>
43064306
[Parameter(ParameterSetName = "LiteralPath",
43074307
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
4308-
[Alias("PSPath")]
4308+
[Alias("PSPath","LP")]
43094309
public string[] LiteralPath
43104310
{
43114311
get

src/Microsoft.PowerShell.Commands.Management/commands/management/NewPropertyCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public string[] Path
3737
/// </summary>
3838
[Parameter(ParameterSetName = "LiteralPath",
3939
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
40-
[Alias("PSPath")]
40+
[Alias("PSPath","LP")]
4141
public string[] LiteralPath
4242
{
4343
get

src/Microsoft.PowerShell.Commands.Management/commands/management/ParsePathCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public class SplitPathCommand : CoreCommandWithCredentialsBase
8383
/// Gets or sets the literal path parameter to the command
8484
/// </summary>
8585
[Parameter(ParameterSetName = "LiteralPathSet", Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
86-
[Alias("PSPath")]
86+
[Alias("PSPath","LP")]
8787
public string[] LiteralPath
8888
{
8989
get

0 commit comments

Comments
 (0)