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
PRASOON KARUNAN V
837c3e8f42
Change minimum depth to 0 for ConvertTo-Json ( #14830 )
...
* Make Depth default value to 0
* updating as per review comment
2021-04-08 12:53:32 -07:00
Brian Lalonde
c5955a5c0d
#4750 Fix Get-Date -UFormat %G and %g behavior ( #14555 )
2021-03-01 16:37:15 -08:00
Steve Lee
c3fa70380c
Fix webcmdlets to properly construct URI from body when using -NoProxy ( #14673 )
2021-02-05 08:06:04 +05:00
Brian Lalonde
61fea6c342
#4750 Fix Get-Date -UFormat %u behavior ( #14549 )
...
Corrects a behavior of %u in Get-Date -UFormat to match ISO 8601.
2021-02-04 08:10:31 +05:00
Paul Higinbotham
0039807082
Fix using variable for nested foreach parallel calls ( #14548 )
2021-02-02 15:34:08 -08:00
Jake
d3f7ba9f95
Write proper error messages for Get-Command ' ' ( #13564 )
2021-01-10 18:03:05 +05:00
Steve Lee
95ce0643c8
Add -SkipLimitCheck switch to Import-PowerShellDataFile ( #13672 )
2020-12-09 11:07:07 -08:00
Steve Lee
9bf512ff5d
Emit warning if ConvertTo-Json exceeds -Depth value ( #13692 )
2020-09-28 21:22:40 +05:00
Dongbo Wang
10237bdeb3
Update PowerShell to build against dotnet 5.0-RC.1 ( #13643 )
2020-09-23 14:04:01 -07:00
Ilya
81d5a86747
Add support for Tls 1.3 in Web cmdlets ( #13409 )
2020-09-02 10:18:15 -07:00
Dongbo Wang
5f9d2846f7
Change Add-Type -OutputType to not support ConsoleApplication and WindowsApplication ( #13440 )
2020-08-21 11:30:42 +05:00
aetos
ede10850cc
Add -UnixTimeSeconds to Get-Date to allow Unix time input ( #13084 )
2020-08-12 10:13:59 -07:00
Steve Lee
99b3bfaa34
Change Read-Host -MaskInput to use existing SecureString path, but return as plain text ( #13256 )
2020-07-30 22:16:37 -07:00
Kirk Munro
472943347d
Add -Runspace parameter to all *-PSBreakpoint cmdlets ( #10492 )
2020-07-21 11:48:54 -07:00
Ilya
0c8aa53a90
Add new test for Format-Custom to avoid data loss ( #11393 )
2020-06-30 09:39:48 +05:00
Paul Higinbotham
7b4e80f07d
Fix tests to not write errors to console ( #13010 )
2020-06-23 14:07:52 -07:00
Joel Sallow (/u/ta11ow)
02af121ca2
Fix issue in Select-Object where Hashtable members (e.g., Keys) cannot be used with -Property or -ExpandProperty ( #11097 )
2020-06-19 15:46:54 -07:00
beatcracker
c22ccbebd2
Add parameter SchemaFile to Test-Json cmdlet ( #11934 )
2020-06-02 13:51:57 -07:00
Ilya
c602f8272e
Remove extra line before formatting group ( #12163 )
2020-05-28 13:19:56 -07:00
Sotiris Nanopoulos and Sotiris Nanopoulos
d26e8c0819
Adds Mask Input Parameter to Read-Host ( #10908 )
...
Co-authored-by: Sotiris Nanopoulos <sonanopo@microsoft.com >
2020-05-28 11:08:23 -07:00
xtqqczze
1f252f8bba
Wrap tests in pester blocks ( #12700 )
...
# PR Summary
Wrap tests in pester blocks to prepare for pesterv5
## PR Context
<!-- Provide a little reasoning as to why this Pull Request helps and why you have opened it. -->
## PR Checklist
- [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- Use the present tense and imperative mood when describing your changes
- [x] [Summarized changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [x] [Make sure all `.h`, `.cpp`, `.cs`, `.ps1` and `.psm1` files have the correct copyright header](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [x] This PR is ready to merge and is not [Work in Progress](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress ).
- If the PR is work in progress, please add the prefix `WIP:` or `[ WIP ]` to the beginning of the title (the `WIP` bot will keep its status check at `Pending` while the prefix is present) and remove the prefix when the PR is ready.
- **[Breaking changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes )**
- [x] None
- **OR**
- [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/6/Microsoft.PowerShell.Core/About/about_Experimental_Features.md )
- [ ] Experimental feature name(s): <!-- Experimental feature name(s) here -->
- **User-facing changes**
- [x] Not Applicable
- **OR**
- [ ] [Documentation needed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [ ] Issue filed: <!-- Number/link of that issue here -->
- **Testing - New and feature**
- [x] N/A or can only be tested interactively
- **OR**
- [ ] [Make sure you've added a new test if existing tests do not effectively test the code changed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting )
- **Tooling**
- [x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
- **OR**
- [ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:
- Impact on [PowerShell Editor Services](https://github.com/PowerShell/PowerShellEditorServices ) which is used in the [PowerShell extension](https://github.com/PowerShell/vscode-powershell ) for VSCode (which runs in a different PS Host).
- Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
- Impact on [PSScriptAnalyzer](https://github.com/PowerShell/PSScriptAnalyzer ) (which provides linting & formatting in the editor extensions).
- Impact on [EditorSyntax](https://github.com/PowerShell/EditorSyntax ) (which provides syntax highlighting with in VSCode, GitHub, and many other editors).
2020-05-23 13:24:53 +00:00
Ilya
16c1a369b3
Make -OutFile param in web cmdlets to work like -LiteralPath ( #11701 )
2020-05-20 15:17:02 -07:00
Sergey Vasin
2c49a6a560
Remove duplicate tests from Measure-Object.Tests.ps1 ( #12683 )
2020-05-15 11:19:54 -07:00
xtqqczze
fde00de77f
Update docs.microsoft.com links ( #12653 )
...
# PR Summary
* remove explicit en-us from links
* remove view parameter
## PR Context
follow-up #7013
## PR Checklist
- [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- Use the present tense and imperative mood when describing your changes
- [x] [Summarized changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [x] [Make sure all `.h`, `.cpp`, `.cs`, `.ps1` and `.psm1` files have the correct copyright header](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [x] This PR is ready to merge and is not [Work in Progress](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress ).
- If the PR is work in progress, please add the prefix `WIP:` or `[ WIP ]` to the beginning of the title (the `WIP` bot will keep its status check at `Pending` while the prefix is present) and remove the prefix when the PR is ready.
- **[Breaking changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes )**
- [ ] None
- **OR**
- [ ] [Experimental feature(s) needed](https://github.com/MicrosoftDocs/PowerShell-Docs/blob/staging/reference/6/Microsoft.PowerShell.Core/About/about_Experimental_Features.md )
- [ ] Experimental feature name(s): <!-- Experimental feature name(s) here -->
- **User-facing changes**
- [x] Not Applicable
- **OR**
- [ ] [Documentation needed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission )
- [ ] Issue filed: <!-- Number/link of that issue here -->
- **Testing - New and feature**
- [x] N/A or can only be tested interactively
- **OR**
- [ ] [Make sure you've added a new test if existing tests do not effectively test the code changed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting )
- **Tooling**
- [x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
- **OR**
- [ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:
- Impact on [PowerShell Editor Services](https://github.com/PowerShell/PowerShellEditorServices ) which is used in the [PowerShell extension](https://github.com/PowerShell/vscode-powershell ) for VSCode (which runs in a different PS Host).
- Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
- Impact on [PSScriptAnalyzer](https://github.com/PowerShell/PSScriptAnalyzer ) (which provides linting & formatting in the editor extensions).
- Impact on [EditorSyntax](https://github.com/PowerShell/EditorSyntax ) (which provides syntax highlighting with in VSCode, GitHub, and many other editors).
2020-05-15 03:29:43 +00:00
Mathias R. Jessen
3c07aad4bc
Fix path handling bug in PSTask ( #12554 )
2020-05-14 10:24:28 -07:00