PowerShell / PowerShell/PowerShell
Add -Current Parameter to Get-Process
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 55.5k
- Forks
- 8.5k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 88
Description
Summary of the new feature / enhancement
Whilst Get-Process -id $PID works today
There are potentially times where you can't use $PID like in RestrictedLanguage Mode
So it makes sense to Add -Current parameter which will return info for the Current Process as that will work RestrictedLanguage Mode
This was recommended as another option to think of as opposed to
- #26950
Proposed technical implementation details (optional)
Add a parameter for Get-Process that return info for the Current running Process
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Get-Process cmdlet and reviewing its current -Id behavior, especially under RestrictedLanguage Mode. Done means a -Current parameter returns information for the current process and the behavior is covered by the project's relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100