Joey Robichaud
b7ce3c568c
Fix parsing SemanticVersion build label from version string ( #16608 )
2021-12-17 09:39:26 -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
Keith Hill
b94dd91e74
Specify exe path as TargetObect for non-zero exit code ErrorRecord ( #16108 )
2021-10-14 14:47:54 -07:00
Dongbo Wang
c8984c0517
Make property names for the color VT sequences consistent with documentations ( #16212 )
2021-10-11 14:58:51 -07:00
Dongbo Wang
e98a8c8601
Fix '-PipelineVariable' to set variable in the right scope ( #16199 )
2021-10-07 10:26:21 -07:00
Steve Lee
024f409763
Add isOutputRedirected parameter to GetFormatStyleString() method ( #14397 )
2021-09-09 11:50:36 -07:00
Aditya Patwardhan
3bb6b2736a
Update Ubuntu images to use Ubuntu 20.04 ( #15906 )
2021-08-30 13:56:52 -07:00
github-actions[bot]
d33b223674
Update .NET SDK version from 6.0.100-preview.6.21355.2 to 6.0.100-rc.1.21426.1 ( #15648 )
2021-08-26 13:07:43 -07:00
Dongbo Wang
403767d7f7
Fix a casting error when using $PSNativeCommandUsesErrorActionPreference ( #15993 )
2021-08-25 17:05:54 -07:00
Robert Holt
a4d14576b3
Make the native command error handling optionally honor ErrorActionPreference ( #15897 )
2021-08-24 15:27:22 -07:00
Steve Lee
a162856af5
Change default to OutputRendering.Host and remove OutputRendering.Automatic ( #15882 )
2021-08-16 14:17:07 -07:00
Paul Higinbotham
1ec61d955c
Remove implicit remoting batch experimental feature ( #15863 )
...
It was decided by committee (#15862 ) to remove this experimental feature. It was an interesting idea but the implementation did not cover important cases, and could not be updated easily to do so.
2021-08-13 08:34:31 +05:00
Steve Lee
cced56d75a
Make PS-Committee reviewed experimental features stable ( #15864 )
2021-08-09 14:01:57 -07:00
Steve Lee
2ae0e4d9dd
Update ServerRemoteHost Version to be same as PSVersion ( #15809 )
2021-08-04 15:01:18 -07:00
xtqqczze
055b7f3003
Fix CA1052 for public API to make classes static when they only have static methods ( #15775 )
2021-07-28 12:28:24 -07:00
Steve Lee
5e15f66f97
Add validation to $PSStyle to reject printable text as ANSI escape sequence ( #15825 )
2021-07-27 17:14:20 +00: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
xtqqczze
756aef9a86
Fix CA2243: Attribute string literals should parse correctly ( #15622 )
...
* Update V2Cmdlets.csv
2021-06-25 17:59:30 +05:00
Robert Holt
7260df7f67
Revert "Temporarily disable Update-Help tests for PackageManagement module ( #15661 )" ( #15662 )
...
This reverts commit d5aa9015bd .
2021-06-25 10:03:45 +05:00
Ilya
d5aa9015bd
Temporarily disable Update-Help tests for PackageManagement module ( #15661 )
2021-06-24 11:35:35 -07:00
Steve Lee
375be2e705
Add DetailedView to $ErrorView ( #15609 )
2021-06-22 13:35:38 -07:00
Steve Lee
9aa9a75cad
Fix retrieving dynamic parameters from provider even if globbed path returns no results ( #15525 )
2021-06-14 11:09:26 -07:00
Andrew
6e73c2d4f6
Remove PSDesiredStateConfiguration v2.0.5 module ( #15536 )
...
* No longer include module with PS releases
* Updated assets/wix/files.wxs
* Moving tests out of the ps repo
* Debug 1
* Debug 2
2021-06-09 12:15:46 -07:00
Steve Lee
597bfc9696
Update Concise ErrorView to not show line information for errors from script module functions ( #14912 )
2021-03-08 23:37:11 +05:00
Steve Lee
6d7fbed02b
Suppress Write-Progress in ConsoleHost if output is redirected and fix tests ( #14716 )
2021-02-08 09:42:53 -08:00
Steve Lee
8e7780860e
Reset color after writing Verbose, Debug, and Warning message ( #14698 )
2021-02-03 09:39:54 -08:00
Andrew
8e3c3e04f8
Cross-platform updates to DSC code in PowerShell ( #13399 )
2021-02-02 14:47:53 -08:00
Steve Lee
bc080921bf
Add support to $PSStyle for strikethrough and hyperlinks ( #14461 )
2020-12-19 11:54:51 +05:00
Ilya
10ef7f5161
Fix PSStyle blink codes ( #14447 )
2020-12-19 11:51:29 +05:00
Paul Higinbotham
caff9011af
Disable libmi dependent tests for macOS. ( #14446 )
2020-12-16 17:35:35 -08:00
Steve Lee
a99ea2acd2
Enable ANSI formatting via $PSStyle and support suppressing ANSI output ( #13758 )
2020-12-11 10:33:57 -08:00
Joel Sallow (/u/ta11ow)
16e2b62d78
Ensure -PipelineVariable is set for all output from script cmdlets ( #12766 )
2020-12-10 12:12:34 -08:00
James Truher [MSFT]
9ca6be1d63
Revert "Update hyperlink for DefaultPromptFunctionText ( #13176 )" ( #14107 )
2020-11-17 09:50:59 -08:00
Christopher Yeleighton
f13d27ba3e
Update hyperlink for DefaultPromptFunctionText ( #13176 )
2020-11-13 17:20:15 -08:00
Dongbo Wang
2728574df7
Rename 'Get-Subsystem' to 'Get-PSSubsystem' and fix two minor issues ( #13765 )
2020-10-14 09:42:37 -07:00
Steve Lee
36ba1092a8
Fix case where exception message contains "`n" on Windows ( #13684 )
2020-09-24 23:43:33 +05:00
Steve Lee
d25d964d57
Fix ConciseView for interactive advanced function writing error ( #13623 )
2020-09-14 11:07:37 -07:00
Dongbo Wang
fc4c9cbfd7
Initial work of the subsystem plugin model (for minimal powershell) ( #13186 )
2020-08-20 17:41:44 -07:00
James Truher [MSFT]
f8b9e8e9db
Create warnings when UTF7 is specified as an encoding ( #13430 )
2020-08-17 22:19:22 -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
Ilya
5ad8a5916f
Add support for some .NET intrinsic type converters ( #12580 )
2020-07-08 14:32:58 -07:00
Steve Lee
ec20043a91
Remove use of Test-Path in ConciseView ( #12778 )
2020-06-11 16:07:18 +05: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
Thomas Larsen
62bb436e71
Change CimCmdlets to use AliasAttribute ( #12617 )
2020-05-22 12:56:47 -07:00
xtqqczze
d98f131c5a
Remove phrase 'All rights reserved' from Microsoft copyright statements ( #12722 )
...
# PR Summary
<!-- Summarize your PR between here and the checklist. -->
## PR Context
follow-up #12190
## 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 )
- [ ] [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-20 12:02:38 +00:00
Tyler James Leonhardt
1bf5cc9317
Copy the CommandInfo property in Command.Clone() ( #12301 )
2020-05-11 13:17:43 -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
Dongbo Wang
c0c17ded03
Do not wrap return result to PSObject when converting ScriptBlock to delegate ( #10619 )
...
This is a breaking change for the delegate types with the object return type:
Before this change, the returned object will always be an PSObject instance.
After this change, the returned object is the underlying object, which could still be an PSObject if that's what the script actually returns.
2020-03-30 21:46:12 +05:00
Dongbo Wang
e741dc58dd
Discover assemblies loaded by 'Assembly.Load(byte[])' and 'Assembly.LoadFile' ( #12203 )
...
* Fix regression: pwsh should discover assemblies loaded by 'Assembly.Load(byte[])' and 'Assembly.LoadFile'
2020-03-28 20:25:59 +05:00
Dongbo Wang
1ec7c826f0
Use dedicated threads to read the redirected output and error streams from the child process for out-of-proc jobs ( #11713 )
2020-03-28 15:44:23 +05:00