xtqqczze
bb58e2aab6
Correct case of $false special variable
2020-01-13 19:25:35 +00:00
xtqqczze
47a3b4e293
Correct case of $true special variable
2020-01-13 19:25:09 +00:00
xtqqczze
4a9d70fdcd
Correct case of $PWD special variable
2020-01-13 19:24:10 +00:00
xtqqczze
62aee9356a
Correct case of $PSScriptRoot special variable
2020-01-13 19:21:53 +00:00
xtqqczze
679702ba05
Correct case of $PSDefaultParameterValues special variable
2020-01-13 19:21:25 +00:00
xtqqczze
4f5bb46268
Remove BOM, insert newline at EOF
2020-01-13 18:36:47 +00:00
xtqqczze
743983390e
Update pester syntax to v4 ( #11544 )
...
* Capitalize 'Should' command and fix whitespace
```powershell
$_ -ireplace '\s?\|\s?should\b',' | Should'
```
* Capitalise and apply hyphen to 'Not' parameter
```powershell
$_ -ireplace '(\| Should) not\b','$1 -Not'
```
* Capitalise and apply hyphen to 'Be' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?be\b','$1 -Be'
```
* Capitalise and apply hyphen to 'BeExactly' parameter
$_ -ireplace '(\| Should(?: -Not)?) -?beexactly\b','$1 -BeExactly'
* Capitalise and apply hyphen to 'BeGreaterThan' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?begreaterthan\b','$1 -BeGreaterThan'
```
* Use 'BeTrue' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?true\b','$1 -BeTrue'
```
* Use 'BeFalse' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?false\b','$1 -BeFalse'
```
* Capitalise and apply hyphen to 'Match' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?match\b','$1 -Match'
```
* Capitalise and apply hyphen to 'Throw' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?throw\b','$1 -Throw'
```
* Capitalise and apply hyphen to 'BeNullOrEmpty' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?benullorempty\b','$1 -BeNullOrEmpty'
```
* Capitalise 'Because' parameter
```powershell
$_ -ireplace '\s-because\b',' -Because'
```
* Fix 'BeNullOrEmpty'
2020-01-11 20:41:59 +05:00
xtqqczze
70d9ed4d55
Remove Unicode BOM from text files ( #11546 )
2020-01-11 12:15:34 +05:00
Paul Higinbotham
b19e2b9d4c
Various test fixes for debugger and remoting ( #11528 )
2020-01-08 16:23:38 -08:00
Paul Higinbotham
f22bad1d58
Fix SSH remoting test to work on all platforms ( #11500 )
2020-01-07 14:01:06 -08:00
Thomas Nieto
b25e67e607
Remove RequireLicenseAcceptance
default value ( #11512 )
2020-01-07 11:43:58 -08:00
Ilya
99cf9fd859
Re-balance CI tests ( #11420 )
2020-01-05 13:01:42 +05:00
Ilya
b221c2afa2
Correct pwsh run ( #11486 )
2020-01-05 12:17:41 +05:00
Steve Lee
5b42126f7c
Don't format exceptions that aren't ErrorRecords ( #11415 )
...
* In one of the previous PRs for ConciseView, System.Exception was incorrectly added to the typenames handled by the ErrorRecord formatting. This results in just Exception objects written to the console to not be rendered since the ErrorRecord formatting didn't handle this situation. Fix is to remove the line to add that type putting it back to how it was previously.
* Also made the handling of ErrorRecord a bit more robust just in case Exception.Message doesn't exist nor a Message property.
2019-12-21 09:45:44 +05:00
Aditya Patwardhan
ed27f36223
Fix test failing when UnixStat
feature is disabled ( #11370 )
2019-12-20 15:32:50 -08:00
Paul Higinbotham
e81bd1dfda
Re-add check for Invoke-Command job dispose. ( #11388 )
2019-12-20 12:13:34 -08:00
xtqqczze
7a7365279c
Avoid variable names that conflict with automatic variables ( #11392 )
2019-12-20 12:09:03 -08:00
Steve Lee
563b1cba83
Add trailing line number to filename for ConciseView ( #11391 )
2019-12-18 14:05:56 -08:00
Steve Lee
edd3e7680c
Move Set-StrictMode to outer scriptblock for ErrorView ( #11381 )
2019-12-17 23:43:47 +05:00
Dongbo Wang
5605bf4195
Fix a regression in formatting caused by the FirstOrDefault
primitive added in 7.0.0-Preview1
( #11258 )
2019-12-11 15:37:18 -08:00
Steve Lee
ed1f6e3144
Make approved features non-experimental ( #11303 )
2019-12-10 15:41:43 -08:00
Steve Lee
6e4da244c5
Update ConciseView
to use TargetObject
if applicable ( #11075 )
2019-12-10 09:50:51 -08:00
Steve Lee
20a236b228
Update setting PSModulePath to concatenate the process + machine env var ( #11276 )
2019-12-09 16:25:08 -08:00
Ilya
95c472a8c2
Add native binary resolver ( #11032 )
2019-12-09 12:03:53 -08:00
Ilya
42f21ae6a0
Cleanups in command discovery ( #10815 )
...
* Enable nullable, make minor cleanups, add a test
* Reduce allocations in GetAliasTable()
* Remove searching by extensions on Unix
2019-12-03 11:23:36 +05:00
Travis Plunk
3cdab0d18d
Add Unblock-File
for macOS ( #11137 )
2019-12-02 17:51:36 -08:00
Brendan Burns
d38541fdce
Add an implementation of Stop-Computer
for Linux and macOS ( #11151 )
2019-12-02 17:29:11 -08:00
David Smatlak
3923ca1728
Fixes FWLinks for PS7 online help documents ( #11071 )
2019-12-02 10:25:56 -08:00
Dongbo Wang
d46dfc26b7
Do not resolve types from assemblies that are loaded in separate AssemblyLoadContext
( #11088 )
2019-11-26 12:40:16 -08:00
Andrew
b218e6f6cc
Support using non-compatible Windows PowerShell modules in PowerShell Core ( #10973 )
2019-11-18 10:44:55 -08:00
Steve Lee
2e553038c5
Allow pwsh
to inherit $env:PSModulePath
and enable powershell.exe
to start correctly ( #11057 )
2019-11-15 17:29:04 -08:00
James Truher [MSFT]
fe712f8de2
Experimental Feature: Provide Unix stat information in filesystem output ( #11042 )
2019-11-15 17:26:11 -08:00
Paul Higinbotham
bd0e30dec1
Fix Start-Job
working directory path with trailing back slash ( #11041 )
2019-11-15 17:05:27 -08:00
Steve Lee
2a45ccc787
Fix ConciseView
to show Activity instead of myCommand ( #11007 )
...
ConciseView shows MyCommand as the prefix to the error message, but for a scriptblock, MyCommand is the whole scriptblock. Fix is to use CategoryInfo.Activity if available first. Also handle case where it's a script function by seeing if it's a command and showing MyCommand in that case rather than the Activity.
2019-11-10 16:21:10 +05:00
Steve Lee
7ddfb825e4
Add back Get-Counter
cmdlet for Windows ( #10933 )
2019-11-05 16:48:11 -08:00
Steve Lee
b74a26bb91
Added cross-platform Get-Clipboard
and Set-Clipboard
( #10340 )
...
Co-Authored-By: Ilya <darpa@yandex.ru>
Co-Authored-By: Ilya <darpa@yandex.ru>
2019-11-04 11:28:58 -08:00
Steve Lee
6882ad56fd
Add back Out-Printer
command ( #10906 )
2019-11-01 11:27:12 -07:00
Steve Lee
4b9c2b2008
Fix Start-Job -WorkingDirectory
with whitespace ( #10951 )
2019-11-01 11:09:00 -07:00
Dongbo Wang
8749db9b81
Improve processing of the powershell built-in type data from 'types.ps1xml', 'typesV3.ps1xml' and 'GetEvent.types.ps1xml' ( #10898 )
2019-11-01 10:36:05 -07:00
Steve Lee
ca68d9dbc5
Add GraphicalHost
assembly to enable Out-GridView
, Show-Command
, and Get-Help -ShowWindow
( #10899 )
2019-11-01 10:05:32 -07:00
PRASOON KARUNAN V
5a76137d14
Take ComputerName via Pipeline in Get-HotFix ( #10852 )
...
* add process record for Get-hotfix
* update new FWLink
2019-11-01 08:02:19 +05:00
Ilya
46957e54d0
Set working directory to current directory in Start-Job
( #10920 )
2019-10-30 14:22:45 -07:00
Steve Lee
0b12ea057a
Add back Update-List
command ( #10922 )
2019-10-30 11:05:30 -07:00
Sean Wheeler
0faa60168b
Update FWLink Id for Clear-RecycleBin ( #10925 )
2019-10-29 22:14:09 +05:00
Steve Lee
ca1b6fb4c5
Add back Clear-RecycleBin
for Windows ( #10909 )
2019-10-28 08:18:26 +05:00
Steve Lee
d8d32d79c2
Implement Get-Error
cmdlet as Experimental Feature ( #10727 )
2019-10-15 14:32:14 -07:00
Patrick Meinecke
beb8b44420
Use type conversion in SSHConnection
hashtables when value doesn't match expected type ( #10720 )
...
Before the change if the hashtable value does not match the expected type exactly, an exception is thrown stating that the value was null.
2019-10-15 22:16:49 +05:00
Steve Lee
1fa73e360f
Add back Get-HotFix
cmdlet ( #10740 )
2019-10-11 22:51:43 +05:00
Dongbo Wang
ec105da3f1
Some code cleanup work ( #10698 )
...
* Move Utils.GetUserConfigurationDirectory to Platform.ConfigDirectory
* Unify the use of Platform.ConfigDirectory and Platform.CacheDirectory
2019-10-07 14:15:01 +05:00
Steve Lee
8cf9c01800
Add ConciseView for $ErrorView ( #10641 )
2019-10-04 16:52:57 -07:00