Repository navigation
enable Update-List cmdlet - #5371
Steve Lee (SteveL-MSFT) wants to merge 2 commits into
Conversation
| @@ -0,0 +1,29 @@ | |||
| Describe "Update-List tests" -Tags CI { | |||
| BeforeEach { | |||
| $list = [System.Collections.Generic.List``1[int]]::new() | |||
There was a problem hiding this comment.
You don't need ``1 - I'm guessing you copied this from an old test that was written before we had better generics support.
There was a problem hiding this comment.
Yup, will change.
Aditya Patwardhan (adityapatwardhan)
left a comment
There was a problem hiding this comment.
LGTM
Jason Shirk (lzybkr)
left a comment
There was a problem hiding this comment.
Does anybody still use this cmdlet? I'd be happy to see my one of my first contributions to PowerShell disappear. :)
|
Jason Shirk (@lzybkr) that's a good question about whether we even want this cmdlet. I've never used it until I wrote tests for it. Florian Feldhaus (@ffeldhaus) opened the original issue and had this in the list. Personally, I'm fine either way. |
|
Steve Lee (@SteveL-MSFT) Could you please review WriteError()'s in |
|
I found 45 results in GitHub https://github.com/search?q=%22Update-List%22+language%3APowerShell&type=Code&utf8=%E2%9C%93 - somebody still use this cmdlet!!! |
|
Ilya (@iSazonov) you have to exclude the .psd1 (which is just copies of Utility.psd1) and any results from PowerShell/* repos or forks of PowerShell/PowerShell. So there's really less than 20 hits and many of them are for the same factorial script and a number are for a custom function called |
|
I agree. I can't think of PowerShell magic scenarios that are impossible without this cmdlet. |
|
@PowerShell/powershell-committee agreed that this is not likely a highly used cmdlet and we can defer bringing it back until we hear customer feedback leaving the disabled code where it is for now |
Part of #2123