Skip to content

Implementation of -lp alias for -LiteralPath Parameter #6732 - #6770

Merged
Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
kvprasoon:master
May 3, 2018
Merged

Implementation of -lp alias for -LiteralPath Parameter #6732#6770
Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
kvprasoon:master

Conversation

@kvprasoon

Copy link
Copy Markdown
Contributor

Implementation of -lp alias for -LiteralPath variable for issue #6732


PR Summary

Added test case for -lp alias usage for below cmdlets

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

PR Checklist

@kvprasoon

Copy link
Copy Markdown
Contributor Author

Fixed unit test failures for
Get-Content
Set-Content
Move-Item
Rename-Item
Tee-Object
Add-Type
cmdlets

@iSazonov Ilya (iSazonov) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave a comment

Comment thread PowerShell.Common.props Outdated

@iSazonov Ilya (iSazonov) Apr 29, 2018

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert changes in the file.
In your editor you could turn on a feature to auto remove trail spaces.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove all alias tests - we have already special tests for aliases and no need to add them here.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove trail spaces.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems this two test don't related to the PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ilya (@iSazonov) yes and those are existing .

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should keep the commit history and do rebase more accurately.

@kvprasoon PRASOON KARUNAN V (kvprasoon) Apr 30, 2018

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Sure and I'm learning 😊

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest you to squash all your commits and then rebase your working branch.

@kvprasoon PRASOON KARUNAN V (kvprasoon) Apr 30, 2018

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, as of now all changes are committed.

@TravisEz13

Copy link
Copy Markdown
Member

I think I fixed the one test you have in my master branch here: https://github.com/travisez13/PowerShell ,but why did you remove the rest of the tests?

@kvprasoon

PRASOON KARUNAN V (kvprasoon) commented May 1, 2018

Copy link
Copy Markdown
Contributor Author

Travis Plunk (@TravisEz13) All the tests ?, If you are referring tests for the new alias, then I've initially added tests for -lp alias for all the cmdlets, iSazonov asked me to remove all the tests I added for -lp alias as alias tests are taken care separately, hence removed.

please correct me if I'm wrong.

@TravisEz13

Copy link
Copy Markdown
Member

ok... I can clean up the PR better with that knowledge... give me a bit.

@TravisEz13

Copy link
Copy Markdown
Member

I squashed the changes down to one commit with the tests removed.

@kvprasoon

Copy link
Copy Markdown
Contributor Author

Travis Plunk (@TravisEz13) Thanks and how did you do that ? I don't know how to do it.

@TravisEz13

Copy link
Copy Markdown
Member

PRASOON KARUNAN V (@kvprasoon) Very carefully...
I created a commit (this took two tries) that reverted the change to test that wasn't completely reverted and just squashed the changes. I then changed the author back to you (you wouldn't have to do that.)

@TravisEz13

Copy link
Copy Markdown
Member

PRASOON KARUNAN V (@kvprasoon) Can you ping me when the tests finish?

@kvprasoon

Copy link
Copy Markdown
Contributor Author

Travis Plunk (@TravisEz13) of course

@kvprasoon

Copy link
Copy Markdown
Contributor Author

Travis Plunk (@TravisEz13) Completed with one failure(failed for a test case for Test-Connection) in appveyor CI

@TravisEz13

Copy link
Copy Markdown
Member

restarted appveyor to get clean results

@TravisEz13 Travis Plunk (TravisEz13) added Review - Committee The PR/Issue needs a review from the PowerShell Committee WG-Cmdlets general cmdlet issues Area-Cmdlets-Utility labels May 1, 2018
@TravisEz13

Copy link
Copy Markdown
Member

Marked for committee review. cc Steve Lee (@SteveL-MSFT)

@SteveL-MSFT

Copy link
Copy Markdown
Member

Travis Plunk (@TravisEz13) committee review is just to accept the new alias?

@daxian-dbw

Copy link
Copy Markdown
Member

Steve Lee (@SteveL-MSFT) It's a change that affects many cmdlets, so I think committee might want to take a quick look.

@daxian-dbw

Copy link
Copy Markdown
Member

@PowerShell/powershell-committee has reviewed and agreed to add the alias -LP for the parameter -LiteralPath.

@daxian-dbw Dongbo Wang (daxian-dbw) added Committee-Reviewed PS-Committee has reviewed this and made a decision and removed Review - Committee The PR/Issue needs a review from the PowerShell Committee labels May 2, 2018
@TravisEz13
Travis Plunk (TravisEz13) merged commit ec678be into PowerShell:master May 3, 2018
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
…PowerShell#6770)

Implementation of -lp alias for -LiteralPath variable for issue PowerShell#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Committee-Reviewed PS-Committee has reviewed this and made a decision WG-Cmdlets general cmdlet issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants