Francesco Saltori
ea2da20a23
Get PowerShell version in PSVersionInfo
using assembly attribute instead of FileVersionInfo
( #14332 )
2020-12-11 17:12:10 -08:00
Aditya Patwardhan
a22e7ec2f3
Update README and metadata json for upcoming release ( #14026 )
2020-11-11 12:03:18 -08:00
Aditya Patwardhan
cb8165eeef
Move PSNullConditionalOperators
feature out of experimental ( #13529 )
2020-08-27 10:11:01 -07:00
Steve Lee
511858a267
Make $ErrorActionPreference
not affect stderr
output of native commands ( #13361 )
2020-08-07 14:19:17 -07:00
Travis Plunk
6583d501b5
Fix a test failure ( #12636 )
2020-05-12 14:26:22 -07:00
xtqqczze
f4382202ae
Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files ( #12584 )
2020-05-07 17:00:30 +05:00
Aditya Patwardhan
633e52f345
Update .NET SDK to 5.0.100-preview.4.20229.10
( #12538 )
2020-05-04 18:17:52 -07:00
Aditya Patwardhan
cc0d20aa08
Bump .NET to 5.0.0-preview.4 ( #12507 )
2020-04-28 14:18:16 -07:00
Aditya Patwardhan
5b390f1507
Update README.md
and metadata.json
for 7.1.0-preview.1
( #12211 )
...
* Update `README.md` and `metadata.json` for `7.1.0-preview.1` release
* Add missing version updates
* fix test failure
* fix test failure
Co-authored-by: Travis Plunk <github@ez13.net>
2020-03-26 12:30:05 -07:00
Steve Lee
b7cb335f03
Update copyright notice to latest guidance ( #12190 )
2020-03-24 11:08:37 -07:00
Steve Lee
495dea0783
Move to .NET 5 preview.1
( #12140 )
2020-03-19 11:27:13 -07:00
Aditya Patwardhan
a578347b5a
Update Get-PlatformInfo
helper and tests for Debian 10, 11 and CentOS 8 ( #11842 )
2020-02-12 18:35:24 -08:00
xtqqczze
2014ce66c1
Set StrictMode
version 3.0
( #11563 )
2020-02-03 09:44:10 -08:00
xtqqczze
920b671fb4
Unify pester test syntax for the arguments of -BeOfType
( #11558 )
2020-01-24 11:00:37 -08:00
xtqqczze
a454352f32
Fix false positives
2020-01-13 19:39:58 +00:00
xtqqczze
090ad9cb33
Correct case of $PSVersionTable special variable
2020-01-13 19:36:31 +00:00
xtqqczze
e0d2e2aade
Correct case of $PSHOME special variable
2020-01-13 19:35:33 +00:00
xtqqczze
225164037f
Correct case of $PID special variable
2020-01-13 19:34:38 +00:00
xtqqczze
b5326a8488
Correct case of $Host special variable
2020-01-13 19:34:10 +00:00
xtqqczze
6d97b3a4a4
Correct case of $IsCoreCLR special variable
2020-01-13 19:27:48 +00:00
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
b6a687bf21
Correct case of $error special variable
2020-01-13 19:19:39 +00:00
xtqqczze
f86f30cf64
Correct case of $NestedPromptLevel special variable
2020-01-13 19:13:53 +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
Ilya
b221c2afa2
Correct pwsh run ( #11486 )
2020-01-05 12:17:41 +05:00
Aditya Patwardhan
2dbb5717ce
Make null member access tests as string to avoid parsing errors ( #11385 )
...
* Make null member access tests as string to avoid parsing errors
* Add PSNullConditionalOperators feature to testmetadata.json
* Add Parsing tests to be skipped
* Add tabcompletion tests
2019-12-21 00:14:07 +00:00
Dongbo Wang
25895e34b8
Fix NullReferenceException in CompletionCompleters public methods ( #11274 )
2019-12-10 09:51:01 +05:00
M1kep
570ba43a24
Allow CompleteInput
to return results from ArgumentCompleter
when AST
or Script has matching function definition ( #10574 )
2019-12-02 10:51:13 -08:00
Steve Lee
a1c2d3c977
Fix detection of $PSHOME in front of $env:PATH ( #11141 )
2019-11-23 15:17:08 -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
Aditya Patwardhan
2579c00a20
Support null-conditional operators ?.
and ?[]
in PowerShell language ( #10960 )
2019-11-15 16:39:53 -08:00
Steve Lee
baf24102ff
Fix crash if command sent to pwsh is just whitespace ( #10977 )
2019-11-04 14:59:52 -08:00
Steve Lee
df811929eb
Fix tab completion for parameters so that it shows common parameters as available ( #10850 )
2019-10-31 13:09:37 -07:00
Steve Lee
f48a28eff2
Change TabExpansion2 to not require -CursorColumn
and treat as $InputScript.Length
( #10849 )
...
* FEATURE: Change TabExpansion2 to not require `-CursorColumn` and treat as `$InputScript.Length`
* address Jason's feedback
2019-10-30 20:45:28 +00:00
Steve Lee
0842fe8b8d
Enable tab completion for variable assignment that is enum ( #10646 )
2019-10-14 09:53:11 -07:00
Travis Plunk
bf91246029
Replace CR and new line with a 0x23CE character ( #10616 )
2019-10-07 11:42:23 -07:00
Steve Lee
8cf9c01800
Add ConciseView for $ErrorView ( #10641 )
2019-10-04 16:52:57 -07:00
Ilya
950e4ba082
Direct Clear-Host output to terminal ( #10681 )
...
Clear-Host on Unix calls clear command which issues escapes. Before the change we write them to PowerShell output stream and it could be unwantedly intercepted. After the change we write the escapes directly to console.
2019-10-03 08:51:07 +05:00
James Truher [MSFT]
3943f18c28
Alpine validation changes ( #10428 )
2019-08-24 11:35:34 -07:00
Dongbo Wang
b77228906d
Skip auto-loading PSReadLine on Windows if the NVDA screen reader is active ( #10385 )
2019-08-23 09:09:34 +05:00
Dan Thompson
fb333fac99
Formatting: Handle XTPUSHSGR
and XTPOPSGR
control sequences ( #10208 )
2019-08-16 13:37:01 -07:00
James Truher [MSFT]
fe2cc6aca8
Additional Telemetry - Implementation of RFC0036
( #10336 )
2019-08-15 16:13:53 -07:00
Robert Holt
14960b5772
pwsh -Login support ( #10050 )
2019-08-14 13:18:43 -07:00
Ben Gelens
ccc791c0a3
Fix #requires -version
for pwsh 7 to include 6.1 and 6.2 in PSCompatibleVersions
( #9943 )
2019-08-12 15:25:28 -07:00
Steve Lee
2ed9abc99b
Enable -sta
and -mta
switches for pwsh ( #10061 )
2019-07-25 12:38:52 -07:00
Ilya
18ff2b6b1d
Cleanup workflow - remove PSProxyJob ( #10083 )
2019-07-12 07:56:27 +05:00
Christoph Bergmeister [MVP]
fe56f9d902
Upgrade .Net Core 3 SDK from preview5 to preview6 and related out of band Nuget packages from 2.1 to 3.0-preview6 ( #9888 )
2019-07-09 14:35:08 -07:00
Steve Lee
981c990d74
Make UseAbbreviationExpansion
and TempDrive
official features ( #9872 )
2019-06-13 13:05:37 -07:00