Commit Graph
553 Commits
Author SHA1 Message Date
Steve Lee 8ff6a06f97 Switch $PSNativeCommandUseErrorActionPreference to $true when feature is enabled (#18695) 2022-12-01 16:13:42 -08:00
Travis Plunk 9c55989a2e Mark charset test as pending (#18511) 2022-11-09 23:04:21 +00:00
CarloToso 489e316151 Webcmdlets set default charset encoding to UTF8 (#18219) 2022-11-02 22:34:09 +05:00
James Truher [MSFT] 074aad6ea9 Add missing -Tag 'CI' to describe blocks. (#18316) 2022-10-17 15:27:24 -07:00
Steve Lee 8a45d14fad Add -FuzzyMinimumDistance parameter to Get-Command (#18261) 2022-10-12 16:08:20 -07:00
Ilya 3a506b9692 Fix decompression in web cmdlets (#17955) 2022-10-04 09:33:37 -07:00
Steve Lee d5ed53eba2 Add CustomTableHeaderLabel formatting to differentiate table header labels that are not property names (#17346) 2022-10-03 15:05:11 -07:00
Dongbo Wang a7a49290a8 Remove the extra new line form List formatting (#18185) 2022-09-30 15:47:51 -07:00
Travis Plunk 96d0a10e7f Remove unneeded use of chmod 777 (#17974)
* Update Pester.Commands.Cmdlets.GetCommand.Tests.ps1

* Update Export-Alias.Tests.ps1

* Update test/powershell/Modules/Microsoft.PowerShell.Utility/Export-Alias.Tests.ps1

* Update test/powershell/Modules/Microsoft.PowerShell.Core/Pester.Commands.Cmdlets.GetCommand.Tests.ps1

* Update test/powershell/Modules/Microsoft.PowerShell.Core/Pester.Commands.Cmdlets.GetCommand.Tests.ps1
2022-08-29 11:06:46 -07:00
Frode Flaten dbffa2766f Stop ongoing progress-bar in Write-Progress test (#17880) 2022-08-12 08:15:42 +05:00
David Bar-On 55c5e789bd Fix for deserializing imported ordered dictionary (#15545) 2022-08-08 23:29:45 +05:00
William Easton ec0dba4605 Remove pre-parse for array-based JSON (#15684) 2022-07-25 14:14:56 -07:00
Dominik Kaszewski 89cc6d1297 Fix Test-Json not handling non-object types at root (#17741) 2022-07-25 22:43:48 +05:00
Steve Lee 08baf27b80 Render decimal numbers in a table using current culture (#17650) 2022-07-18 14:27:06 -07:00
Steve Lee ff0506d632 Change ConvertFrom-Json -AsHashtable to use ordered hashtable (#17405)
JSON typically has ordering to make it easier to read. Currently, a Hashtable does not preserve ordering so for complex JSON, the members are not where you would expect in terms of order. This change wraps OrderedDictionary into a OrderedHashtable that derives from Hashtable. This preserves existing compatibility with scripts that expect a Hashtable to be returned, but preserves the order of elements.
2022-07-13 09:23:03 +05:00
Bryan Berns ca0178a802 Add Milliseconds Parameter to New-TimeSpan (#17621) 2022-07-12 11:09:19 +05:00
Shuangchi He c5d31c9e10 Correct spelling in Comments and tests (#17480) 2022-06-06 09:55:33 -07:00
Aditya Patwardhan d99626927d Update Get-Error test to not depend on DNS APIs (#17471) 2022-06-03 09:25:24 -07:00
github-actions[bot] 38909f7ee5 Update .NET SDK version from 7.0.100-preview.2.22153.17 to 7.0.100-preview.4.22252.9 (#17061) 2022-05-11 18:27:51 -07:00
James Truher [MSFT] 1a24540e31 Enable more tests to be run in a container. (#17294) 2022-05-11 12:30:22 -07:00
Dongbo Wang 44098e771a Fix the list view to not leak VT decorations (#17262) 2022-05-10 16:05:14 -07:00
Ryne Andal 2550a3a23a Add check for ScriptBlock wrapped in PSObject to $using used in ForEach-Object -Parallel (#17234) 2022-05-04 10:51:45 -07:00
m1k0net 0067decae8 Fix Sort-Object -Stable -Unique to actually do stable sorting (#17189) 2022-04-26 16:58:37 -07:00
Aditya Patwardhan 9fc0e80fb7 Update dotnetmetadata.json to accept .NET 7 preview 3 builds (#17063) 2022-03-25 16:15:16 -07:00
James Truher [MSFT] b3632eda46 Improve unique naming for tests (#17043) 2022-03-23 09:24:10 -07:00
Mathias R. Jessen 686c84cccc Add new parameter to Start-Sleep: [-Duration] <timespan> (#16185) 2022-01-13 17:39:54 -08:00
KiwiThePoodle 83a809b1f0 Make Measure-Object ignore missing properties unless running in strict mode (#16589) 2022-01-13 09:33:43 -08:00
Steve Lee 7a2b44523b Fix web cmdlets so that an empty Get does not include a content-length header (#16587) 2022-01-03 11:20:33 -08:00
Andrew 1d1e42fd1a Merge branch 'master' into BringChangesFrom730P1 2021-12-16 13:45:37 -08:00
Andrew Menagarishvili 3f1c03d494 Merged PR 18449: Change default for $PSStyle.OutputRendering to Ansi
Cherry picked from !18333

Cherry-picked from commit `5cb8a2b3`.
2021-12-16 13:39:56 -08:00
Paul Higinbotham cadd5762ea Fix ForEach-Object -Parallel when passing in script block variable (#16564)
ForeEach-Object -Parallel using variable processing walks the script block AST to determine if the using variable was defined in the current scope, and does this by tracking the number of 'ForEach-Object -Parallel' commands in the call chain.
However, the provided script block is different, depending on whether it is passed in as a variable or via parameter binding.

$myScript = '"Hello!"'
1 | ForEach-Object -Parallel ([scriptblock]::Create($myScript))
# Script block Ast does not contain the 'ForEach-Object' command in the call chain

1 | ForEach-Object -Parallel { "Hello!" }
# Script block Ast does contain the 'ForEach-Object' command in the call chain

This change takes into account the two forms of script blocks
2021-12-14 08:11:19 +05:00
Maksim Ivanyuk 674ef888a2 Add -HttpVersion parameter to web cmdlets (#15853) 2021-11-02 16:53:36 -07:00
Austin Farmer 107fd7ab1f Add support to web cmdlets for open-ended input tags (#16193) 2021-11-02 09:39:28 -07:00
Ryan Polley cf22188e95 Add more tests to Tee-Object -Encoding (#14539) 2021-11-01 23:06:05 -07:00
Kev Ritchie 01426b2763 Fix ConvertTo-Json -Depth to allow 100 at maximum (#16197) 2021-10-28 11:56:55 -07:00
Dongbo Wang 89dd5b8127 Remove the outdated test (#16269) 2021-10-19 13:45:36 +05:00
Aditya Patwardhan 3bb6b2736a Update Ubuntu images to use Ubuntu 20.04 (#15906) 2021-08-30 13:56:52 -07:00
Steve Lee a162856af5 Change default to OutputRendering.Host and remove OutputRendering.Automatic (#15882) 2021-08-16 14:17:07 -07:00
Robert Holt 2f5150f5e5 Make Measure-Object property test independent of the filesystem (#15879) 2021-08-09 15:27:09 -07:00
Steve Lee cced56d75a Make PS-Committee reviewed experimental features stable (#15864) 2021-08-09 14:01:57 -07:00
3e86f9b287 ConvertTo-Csv: Quote fields with quotes and newlines when using -UseQuotes AsNeeded (#15765)
Co-authored-by: Ilya <darpa@yandex.ru>
Co-authored-by: lselden <luke.selden@vbrick.com>
2021-08-04 14:47:57 -07:00
Staffan Gustafsson 1bfa1c36a7 Forwarding progress stream changes from Foreach-Object -Parallel runspaces (#14271) 2021-07-31 18:51:03 +05:00
Peter Schneider de5dc63379 Encoding Parameter for Tee-Object (#12135) 2021-07-22 09:26:07 +05:00
Joel Sallow (/u/ta11ow) efa9b25193 ConvertTo-Csv / Export-Csv - Serialize IDictionary objects with key/value pairs as properties (#11029) 2021-07-22 04:05:17 +00:00
Thomas Nieto 05943c6c48 Add position 0 to Write-Error parameters (#13813) 2021-07-21 18:05:06 -07:00
Steve Lee b5efe7bc39 Use $PSStyle.Formatting.FormatAccent for Format-List and $PSStyle.Formatting.TableHeader for Format-Table output (#14406) 2021-07-20 09:02:52 +05:00
William Easton 0e1160d20f Add more tests for ConvertFrom-Json (#15706) 2021-07-16 16:01:47 -07:00
Steve Lee 9fb3c2e97c Highlight using error color the exception Message and underline in PositionMessage for Get-Error (#15786) 2021-07-16 15:15:16 +05:00
Steve Lee adc236c598 Don't serialize to json ETS properties for DateTime and string types (#15665) 2021-07-12 10:56:33 -07:00
Steve Lee 364e74a00a Fix Minimal progress view to handle Activity that is longer than console width (#15264) 2021-05-17 09:54:37 -07:00