Repository navigation
Open
Labels
In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
Description
Summary of the new feature / enhancement
Consider renaming -RelativeBasePath to -BasePath (while keeping the original name as an alias so as to preserve backward compatibility), which has the following advantages:
- It doesn't tempt users to assume that the parameter only works in the context of the
-Relativeswitch. - In conjunction with that, it doesn't lead users to expect that use of the parameter should imply
-Relative- seeResolve-Path -RelativeBasePathis ignored unless-Relativeis also specified, should imply the latter #20920 - A distinct name makes tab-completion easier.
# WISHFUL THINKING: Use of -BasePath instead of -RelativePath
# With -Relative
# Get the relative path from C:\Windows to, say, C:\Users\jdoe -> '..\Users\jdoe'
Resolve-Path $HOME -Relative -BasePath C:\Windows
# Without -Relative:
# Get the absolute paths of items named Prog* in C:\
# -> [System.Management.Automation.PathInfo] instances for the following full paths:
# 'C:\Program Files'
# 'C:\Program Files (x86)'
Resolve-Path Prog* -BasePath C:\Proposed technical implementation details (optional)
No response
Reacted by Armaan Mcleod and soroshsabz
Metadata
Metadata
Assignees
Labels
In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
Activity
StevenBucher98 commentedon Dec 18, 2023
Marking as up for grabs as this is something I don't believe the team has the capacity for, I will let the @PowerShell/wg-powershell-cmdlets discuss but would say we would welcome a PR for adding this enhancement.