You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to see classes shipping with PowerShell geared towards scripters implementing advanced functions.
With common patterns I mean path processing, with or w/o globbing, Include/Exclude filtering,
Progress management (percent complete/seconds remaining), creation of error records etc.
All these things that we write over and over again.
You're right - it's a lot of boiler plate crap that is a PITA to have to write. I've added snippets for some of this (primarily path processing) to the PowerShell extension for VSCode. It seems like path processing is so common that there would be a specific PathParameterAttribute that would move all the grungy boiler plate code into PowerShell and provide your script's [string] or [string[]] parameter with all the properly resolved (tested for existence if the path must exist) and error appropriately (like when a "must exist" path doesn't exist). Ah, I can dream. :-)
This issue has not had any activity in 6 months, if there is no further activity in 7 days, the issue will be closed automatically.
Activity in this case refers only to comments on the issue. If the issue is closed and you are the author, you can re-open the issue using the button below. Please add more information to be considered during retriage. If you are not the author but the issue is impacting you after it has been closed, please submit a new issue with updated details and a link to this issue and the original.
Activity
rkeithhill commentedon Nov 19, 2016
You're right - it's a lot of boiler plate crap that is a PITA to have to write. I've added snippets for some of this (primarily path processing) to the PowerShell extension for VSCode. It seems like path processing is so common that there would be a specific
PathParameterAttributethat would move all the grungy boiler plate code into PowerShell and provide your script's [string] or [string[]] parameter with all the properly resolved (tested for existence if the path must exist) and error appropriately (like when a "must exist" path doesn't exist). Ah, I can dream. :-)powercode commentedon Dec 6, 2016
Wow, this issue really attracted a lot of attention :)
Is it better to open multiple issues with more specific suggestions?
lzybkr commentedon Dec 6, 2016
Yeah, I'd say more specific issues would help drive something forwards.
powercode commentedon Dec 6, 2016
What would be a good namespace for such tools?
SMA.Util?
SMA.Common?
SMA.SDK?
ThomasNieto commentedon Aug 18, 2023
Similar issue #6745
microsoft-github-policy-service commentedon Feb 14, 2024
This issue has not had any activity in 6 months, if there is no further activity in 7 days, the issue will be closed automatically.
Activity in this case refers only to comments on the issue. If the issue is closed and you are the author, you can re-open the issue using the button below. Please add more information to be considered during retriage. If you are not the author but the issue is impacting you after it has been closed, please submit a new issue with updated details and a link to this issue and the original.
powercode commentedon Mar 22, 2024
Ping to keep alive