Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document -Force parameter for Resolve-Path and Convert-Path cmdlets #10755

Open
2 tasks done
ArmaanMcleod opened this issue Jan 1, 2024 · 0 comments · May be fixed by #11424
Open
2 tasks done

Document -Force parameter for Resolve-Path and Convert-Path cmdlets #10755

ArmaanMcleod opened this issue Jan 1, 2024 · 0 comments · May be fixed by #11424
Labels
hold-for-release Waiting - for next release issue-doc-idea Issue - request for new content
Milestone

Comments

@ArmaanMcleod
Copy link

ArmaanMcleod commented Jan 1, 2024

Prerequisites

  • Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
  • Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Document new Get-Foo cmdlet" instead of "New cmdlet."

Summary

Added -Force parameter to Resolve-Path and Convert-Path cmdlets to support wildcard hidden files. This new parameter should be documented in help page.

Details

Example 1

HIdden files(in this case .git folder) are not shown without -Force. This is current behaviour.

> Resolve-Path -Path .git*

Path
----
C:\Users\armaa\Documents\git-repos\PowerShell\.github
C:\Users\armaa\Documents\git-repos\PowerShell\.gitattributes
C:\Users\armaa\Documents\git-repos\PowerShell\.gitignore

> Convert-Path -Path .git*
C:\Users\armaa\Documents\git-repos\PowerShell\.github
C:\Users\armaa\Documents\git-repos\PowerShell\.gitattributes
C:\Users\armaa\Documents\git-repos\PowerShell\.gitignore

Example 2

All HIdden files(in this case including .git folder) are shown with -Force. This is new behaviour.

> Resolve-Path -Path .git* -Force

Path
----
C:\Users\armaa\Documents\git-repos\PowerShell\.git
C:\Users\armaa\Documents\git-repos\PowerShell\.github
C:\Users\armaa\Documents\git-repos\PowerShell\.gitattributes
C:\Users\armaa\Documents\git-repos\PowerShell\.gitignore

> Convert-Path -Path .git* -Force
C:\Users\armaa\Documents\git-repos\PowerShell\.git
C:\Users\armaa\Documents\git-repos\PowerShell\.github
C:\Users\armaa\Documents\git-repos\PowerShell\.gitattributes
C:\Users\armaa\Documents\git-repos\PowerShell\.gitignore

Articles

  • reference/7.4/Microsoft.PowerShell.Management/Resolve-Path.md
  • reference/7.4/Microsoft.PowerShell.Management/Convert-Path.md

Related Source Pull Requests

Related Source Issues

@ArmaanMcleod ArmaanMcleod added issue-doc-idea Issue - request for new content needs-triage Waiting - Needs triage labels Jan 1, 2024
@sdwheeler sdwheeler added hold-for-pr Waiting - for PR merge hold-for-release Waiting - for next release and removed needs-triage Waiting - Needs triage labels Jan 2, 2024
@sdwheeler sdwheeler added this to the Future milestone Feb 7, 2024
@sdwheeler sdwheeler removed the hold-for-pr Waiting - for PR merge label Aug 30, 2024
@sdwheeler sdwheeler linked a pull request Sep 25, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold-for-release Waiting - for next release issue-doc-idea Issue - request for new content
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants