Commit graph

2184 commits

Author SHA1 Message Date
dependabot-preview[bot] d4e047ce45
Bump PSReadLine from 2.0.2 to 2.0.4 (#13240) 2020-08-06 11:17:30 -07:00
dependabot-preview[bot] 8bbd86ddab
Bump Microsoft.NET.Test.Sdk from 16.6.1 to 16.7.0 (#13364) 2020-08-06 10:26:12 -07:00
Christopher Yeleighton 8626937ac4
Change "operable" to "executable" (#13281)
* Change "operable" to "executable" in a resource string
2020-08-06 13:02:43 +05:00
dependabot-preview[bot] 2b4d147be7
Bump xunit.runner.visualstudio from 2.4.2 to 2.4.3 (#13343) 2020-08-05 10:09:48 -07:00
Dongbo Wang 63cf0c330c
Allow explicitly specified named parameter to supersede the same one from hashtable splatting (#13162)
Allow explicitly specified named parameter to supersede the same one from hashtable splatting.
The work is done in parameter binder, so that parameters can be resolved to cover a parameter's official name, alias name, and unambiguous partial prefix name.

The changes covers covers Hashtable splatting in 3 scenarios:

- Cmdlet or advanced script invocation;
- Simple function invocation;
- ScriptBlock.GetPowerShell(...), where the script block contains command invocation only and uses Hashtable splatting.

Some code refactoring is done to ParameterBinderController to avoid redundant code being duplicated in CmdletParameterBinderController and ScriptParameterBinderController.
2020-08-05 10:59:53 +05:00
Joel Sallow (/u/ta11ow) 6aa08f9559
Improve BigInteger casting behaviours (#12629) 2020-08-04 10:45:36 +05:00
Shri Ram K S 9ceee3e52f
Fix Get-Acl -LiteralPath "HKLM:Software\Classes\*" behaviour (#13107)
* Fix #11566 bug

Add pester test for Get-Acl cmdlet

* Replace -pending parameter with -skip

* Fix test failing in Linux and MacOS
2020-07-31 16:44:45 -07:00
Dongbo Wang 4464d1b414
Add DefaultVisit method to the visitor interface and class (#13258) 2020-07-31 10:16: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
Dongbo Wang 4b9b0788ed
Revert "Use is null syntax (#13277)" (#13322)
This reverts commit 6c03776d74.
2020-07-30 16:06:38 -07:00
xtqqczze 7beec89f50
Add copyright header to .editorconfig and update files (#13306) 2020-07-30 09:47:21 -07:00
xtqqczze 6c03776d74
Use is null syntax (#13277)
Replace `== null` with `is null`
2020-07-30 18:04:03 +05:00
Dongbo Wang 1f904e47d4
Make the failing test pending to unblock PR CIs (#13310)
* Mark Test-Connection tests as pending
2020-07-30 12:48:53 +05:00
xtqqczze 6ca0024db9
Fix SA1026CodeMustNotContainSpaceAfterNewKeywordInImplicitlyTypedArrayAllocation (#13249)
See https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1026.md
2020-07-23 22:19:15 +05:00
Dongbo Wang f6f966b3dc
Fix Invoke-Command to detect recursive call of the same history entry (#13197) 2020-07-23 09:11:25 -07:00
Shri Ram K S a6bd47f031
Add password confirmation in Get-Credential (#12782)
* Add parameter -ReEnterPassword to prompt user to re-enter the password for confirmation

* Add new public overload function PromptForCredential
2020-07-22 19:13:42 +05:00
github-actions[bot] 9c396aa0ea
Update .NET SDK version from 5.0.100-preview.7.20366.2 to 5.0.100-preview.7.20366.15 (#13200)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-07-22 18:53:33 +05:00
Kirk Munro 472943347d
Add -Runspace parameter to all *-PSBreakpoint cmdlets (#10492) 2020-07-21 11:48:54 -07:00
github-actions[bot] 1ed554dde4
Update .NET SDK version from 5.0.100-preview.7.20364.3 to 5.0.100-preview.7.20366.2 (#13192) 2020-07-16 12:12:40 -07:00
github-actions[bot] 3a1158e1dd
Update .NET SDK version from 5.0.100-preview.7.20358.6 to 5.0.100-preview.7.20364.3 (#13155) 2020-07-15 10:05:49 -07:00
dependabot-preview[bot] 16736a30b2
Bump Xunit.SkippableFact from 1.4.8 to 1.4.13 (#13143) 2020-07-13 10:13:05 -07:00
xtqqczze 8901d2a509
Cleanup: use int instead of uint in places where it's more appropriate (#13141) 2020-07-13 07:10:57 -07:00
Ilya 5ad8a5916f
Add support for some .NET intrinsic type converters (#12580) 2020-07-08 14:32:58 -07:00
github-actions[bot] 7da0742cb6
Update .NET SDK version from 5.0.100-preview.6.20318.15 to 5.0.100-preview.7.20356.2 (#13125) 2020-07-07 12:10:11 -07:00
Robert Holt d3addeb3da
Fix Move-Item to support cross-mount moves on Unix (#13044) 2020-07-06 16:39:08 -07:00
Christopher Yeleighton babf02768b
Fix error message from new symbolic link missing target (#13085) 2020-07-03 12:54:26 +05:00
Travis Plunk d1aa11e367
Fix Path for the Preview MSI (#13070) 2020-07-01 09:56:12 -07:00
Aditya Patwardhan 808bf22d2f
Ensure assemblies listed FileList are not loaded (#12968)
Co-authored-by: Aditya Patwardhan <Aditya Patwardhan>
2020-06-30 10:16:13 -07:00
Ilya 0c8aa53a90
Add new test for Format-Custom to avoid data loss (#11393) 2020-06-30 09:39:48 +05:00
Travis Plunk 1397deffe4
Correct stable and preview upgrade codes for MSI (#13036)
Co-authored-by: Robert Holt <rjmholt_msft@outlook.com>
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com>
2020-06-29 14:13:10 -07:00
dependabot-preview[bot] 766e166f99
Bump xunit.runner.visualstudio from 2.4.1 to 2.4.2 (#12874) 2020-06-29 09:51:58 -07:00
Aditya Patwardhan 8030889b7b
Update .NET SDK version from 5.0.100-preview.5.20279.10 to 5.0.100-preview.6.20318.15 (#13018) 2020-06-23 17:30:31 -07:00
Paul Higinbotham 7b4e80f07d
Fix tests to not write errors to console (#13010) 2020-06-23 14:07:52 -07:00
Aditya Patwardhan 0d75cfdc2d
Revert "Update .NET SDK version from 5.0.100-preview.5.20279.10 to 5.0.100-preview.6.20319.2 (#12992)" (#13017)
This reverts commit ce8dc1e30c.
2020-06-23 11:52:20 -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
github-actions[bot] ce8dc1e30c
Update .NET SDK version from 5.0.100-preview.5.20279.10 to 5.0.100-preview.6.20319.2 (#12992) 2020-06-19 11:28:09 -07:00
Travis Plunk 3319f4cafc
Make sure tabcompletion tests run (#12981) 2020-06-17 10:44:34 -07:00
Robert Holt a6507093a2
Remove dependency on DNS for Test-Connection tests on macOS (#12943) 2020-06-16 13:17:29 -07:00
Christopher Yeleighton 04b121471a
Make the switch parameter -Qualifier not positional for Split-Path (#12960) 2020-06-16 10:28:41 -07:00
dependabot-preview[bot] ed4cd20d80
Bump PSReadLine from 2.0.1 to 2.0.2 (#12909)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
2020-06-12 13:07:41 -07:00
romero126 8d85c14f5b
Rename CopyItem.Tests.ps1 to Copy-Item.Tests.ps1 to match other tests (#10701) 2020-06-12 08:16:40 -07:00
Steve Lee ec20043a91
Remove use of Test-Path in ConciseView (#12778) 2020-06-11 16:07:18 +05:00
Bryan Berns edf7cc0ead
Resolve the working directory as literal path for Start-Process when it's not specified (#11946) 2020-06-09 10:27:53 -07:00
Carl Morris 2ea18ee6c9
Flag default switch statement condition clause as keyword (#10487) 2020-06-09 10:22:37 -07:00
Ilya 80ac3cc735
Enable skipped tests (#12894) 2020-06-05 12:01:53 -07:00
beatcracker c22ccbebd2
Add parameter SchemaFile to Test-Json cmdlet (#11934) 2020-06-02 13:51:57 -07:00
xtqqczze b03b968d0a
Restore markdownlint tests (#12549)
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
2020-06-02 12:28:32 -07:00
Ilya 73e8427586
Bring back Certificate provider parameters (#10622) 2020-06-02 11:44:16 -07:00
Ilya 3de9069ca7
Fix New-Item to create symbolic link to relative path target (#12797) 2020-06-01 13:12:27 -07:00
github-actions[bot] 55b9041a40
Update .NET SDK version from 5.0.100-preview.5.20278.13 to 5.0.100-preview.5.20279.10 (#12844)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-05-30 10:31:44 -07:00