Commit Graph
100 Commits
Author SHA1 Message Date
Steve Lee d0e823797f Don't allow Move-Item with FileSystemProvider to move a directory into itself (#16198) 2021-10-12 14:16:32 -07:00
Steve Lee e81048b6ab Remove Joey from Committee and WG membership (#16119) 2021-09-17 17:37:18 +00:00
Steve Lee bd5e985cb0 Remove support for AppExeCLinks to retrieve target (#16044) 2021-09-15 11:13:05 -07:00
Steve Lee 171c7ffdc8 Move GetOuputString() and GetFormatStyleString() to PSHostUserInterface as public API (#16075) 2021-09-15 11:12:39 -07:00
Steve Lee c1401377d4 Add isOutputRedirected parameter to GetFormatStyleString() method (#14397) 2021-09-15 11:12:26 -07:00
Steve Lee 7c9bf378f0 Fix regression in Move-Item to only fallback to CopyAndDelete in specific cases (#16029)
If Move fails, check if known case before attempting CopyAndDelete:

- if an item is attempted to be renamed across filesystem mount boundaries.
- if the source and destination do not have the same root path.
2021-09-15 11:11:20 -07:00
Steve Lee ed249d0fe6 Remove support for AppExeCLinks to retrieve target (#16044) 2021-09-14 14:08:00 -07:00
Steve Lee dad7a34ee7 Move GetOuputString() and GetFormatStyleString() to PSHostUserInterface as public API (#16075) 2021-09-10 09:05:07 -07:00
Steve Lee 024f409763 Add isOutputRedirected parameter to GetFormatStyleString() method (#14397) 2021-09-09 11:50:36 -07:00
Steve Lee 5872e47254 Fix regression in Move-Item to only fallback to CopyAndDelete in specific cases (#16029)
If Move fails, check if known case before attempting CopyAndDelete:

- if an item is attempted to be renamed across filesystem mount boundaries.
- if the source and destination do not have the same root path.
2021-09-08 11:20:30 +05:00
Steve Lee a162856af5 Change default to OutputRendering.Host and remove OutputRendering.Automatic (#15882) 2021-08-16 14:17:07 -07:00
Steve Lee dda6c156d2 Fix $PSStyle list output to correctly show TableHeader (#15928) 2021-08-13 15:40:07 -07: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
6933c5b473 Only allow -File to accept .ps1 scripts on Windows (#15859)
Co-authored-by: Ilya <darpa@yandex.ru>
Co-authored-by: Paul Higinbotham <paulhi@microsoft.com>
2021-08-03 13:43:00 -07:00
Steve Lee a6c147c1f8 Update PS-Committee members (#15837) 2021-08-03 12:09:25 -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
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 bfb4a818bf Add support to colorize FileInfo file names (#14403) 2021-07-12 11:07:29 -07: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 c49cf068b3 Add to bug report template getting details from Get-Error (#15737) 2021-07-08 11:08:41 -07:00
Steve Lee e6ee841a69 Add @jborean93 to Remoting Working Group (#15683) 2021-07-01 08:57:57 +05: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
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
Steve Lee 38d582f038 Handle exception if ConsoleHost tries to set cursor out of bounds because screen buffer changed (#15380) 2021-05-14 11:05:49 -07:00
Steve Lee 980bbe6241 Update Appx manifest to newer version to fix unvirtualizedResources capability (#15375) 2021-05-10 22:22:33 -07:00
Steve Lee 1df4236e6c Kill native processes in pipeline when pipeline is disposed on Unix (#15287) 2021-04-26 15:10:35 -07:00
Steve Lee fc1d5ef096 Default to MTA on Windows platforms where STA is not supported (#15106) 2021-04-22 08:38:13 -07:00
Steve Lee 33d1c124af Add /Y switch to azcopy to suppress prompting for msixbundle upload (#15227) 2021-04-14 12:03:48 -07:00
Steve Lee 2f3f39906f resolve merge conflict (#14969) 2021-04-12 20:11:50 -07:00
Steve Lee 44d5ce9e01 Use ProgressView.Classic if Virtual Terminal is not supported (#15048) 2021-04-12 16:40:29 -07:00
Steve Lee cf6876e716 Allow Set-Clipboard to accept empty string (#14579) 2021-04-01 13:03:19 -07:00
Steve Lee c008e3e930 Turn on and off DECCKM to modify keyboard mode for Unix native commands to work correctly (#14943) 2021-04-01 13:01:31 -07:00
Steve Lee 5d0dadf19d Fallback to CopyAndDelete() when MoveTo() fails due to an IOException (#15077) 2021-03-25 15:11:17 -07:00
Steve Lee c9d65061af Add UseOSCIndicator setting to enable progress indicator in terminal (#14927) 2021-03-11 17:29:17 -08:00
Steve Lee cbd97d0cab Re-enable VT mode on Windows after running command in ConsoleHost (#14413) 2021-03-09 16:02:16 -08:00
Steve Lee 727785cd10 Enable building PowerShell for Apple M1 runtime (#14923) 2021-03-09 12:09:31 -08:00
Steve Lee 22b3653bf4 Fix Move-Item for FileSystemProvider to use copy-delete instead of move for DFS paths (#14913) 2021-03-08 15:01:31 -08:00
Steve Lee d9da234cdf Fix PromptForCredential() to add targetName as domain (#14504) 2021-03-08 10:52:02 -08: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 887467eb32 Add minimal progress bar using ANSI rendering (#14414) 2021-02-05 10:50:20 -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
Steve Lee 8e7780860e Reset color after writing Verbose, Debug, and Warning message (#14698) 2021-02-03 09:39:54 -08:00
Steve Lee ec5a77653c When formatting, if collection is modified, don't fail the entire pipeline (#14438) 2021-01-27 16:37:36 -08:00
Steve Lee 63fc60122a Add intent for using the Discussions feature in repo (#14399) 2021-01-13 16:13:35 -08:00
Steve Lee bc080921bf Add support to $PSStyle for strikethrough and hyperlinks (#14461) 2020-12-19 11:54:51 +05:00
Steve Lee a99ea2acd2 Enable ANSI formatting via $PSStyle and support suppressing ANSI output (#13758) 2020-12-11 10:33:57 -08:00
Steve Lee 95ce0643c8 Add -SkipLimitCheck switch to Import-PowerShellDataFile (#13672) 2020-12-09 11:07:07 -08:00
Steve Lee e771ea20ec Fix links to LTS versions for Windows (#14070) 2020-11-12 14:19:39 -08:00
Steve Lee 16cc9aaaf8 Fix blocking wait when starting file associated with a Windows application (#13750)
* Fix blocking wait when starting file associated with a Windows application in elevated process

* refactor check if app is WindowsApp
2020-10-07 12:58:24 +05:00
Steve Lee fc8ca61b3d Revert "Change PSNativePSPathResolution to not be Experimental" (#13734)
* Revert "Change `PSNativePSPathResolution` to not be Experimental (#13522)"

This reverts commit 74c743d279.
2020-10-03 21:20:24 +05:00
Steve Lee 9bf512ff5d Emit warning if ConvertTo-Json exceeds -Depth value (#13692) 2020-09-28 21:22:40 +05: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
Steve Lee 74c743d279 Change PSNativePSPathResolution to not be Experimental (#13522) 2020-08-27 12:08:52 +05:00
Steve Lee d67649c300 Fix $? to not be $false when native command writes to stderr (#13395) 2020-08-19 09:31:38 -07:00
Steve Lee 511858a267 Make $ErrorActionPreference not affect stderr output of native commands (#13361) 2020-08-07 14:19:17 -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
Steve Lee b66ba27261 Add new chibi version of the avatar (#13140) 2020-07-09 11:34:24 -07:00
Steve Lee 2f1d40c4ec Fix conflicting shorthand switch -w for pwsh (#12945) 2020-06-16 18:36:01 -07:00
Steve Lee ec20043a91 Remove use of Test-Path in ConciseView (#12778) 2020-06-11 16:07:18 +05:00
Steve Lee 15c2245af9 Restrict loading of amsi.dll from system32 folder (#12730)
<!-- Anything that looks like this is a comment and can't be seen after the Pull Request is created. -->

# PR Summary

Restrict search path for `amsi.dll` and `wldp.dll` to just System32 on Windows

## 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-20 20:43:58 +00:00
Steve Lee d4e338ce6a Update README.md removing experimental status of Arm builds, but Win-Arm64 is still preview for Stable release. (#12707) 2020-05-19 11:10:43 -07:00
Steve Lee 23b1dd46ae Support passing PSPath to native commands (#12386) 2020-04-27 14:14:57 -07:00
Steve Lee f23be437af Fix terms checker issues (#12189) 2020-03-24 11:38:45 -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
Steve Lee e9152a59a5 Remove the version number of PowerShell from LICENSE (#12019) 2020-03-12 22:13:34 -07:00
Steve Lee 2db8516a8c Fix ConciseView to not show the line information within the error messages (#11952) 2020-02-26 21:07:57 +05:00
Steve Lee a09855017f Generate guid for FormatViewDefinition InstanceId if not provided (#11896) 2020-02-20 19:57:26 +05:00
Steve Lee 34f9b43514 Fix ConciseView where error message is wider than window width and doesn't have whitespace (#11880) 2020-02-20 08:38:28 +05:00
Steve Lee 5edafb6afd Fix ConciseView to handle case where there isn't a console to obtain the width (#11784) 2020-02-12 11:48:58 +05:00
Steve Lee db370dcc79 Enable pwsh to work on Windows systems where mpr.dll and STA is not available (#11748) 2020-02-04 10:52:19 -08:00
Steve Lee 6c6c9cc41e Fix help function to check if less is available before usi… (#11737) 2020-02-03 14:38:11 -08:00
Steve Lee 66912b7428 Fix unnecessary trimming of line resulting in incorrect indexi… (#11670) 2020-01-30 11:03:39 -08:00
Steve Lee de2d34b2ad Support expanding ~ in $env:PATH when doing command discovery (#11552) 2020-01-14 10:24:26 -08:00
Steve Lee f61c0d4444 Update building of MSIX for RC to use 100 range revision (#11526) 2020-01-09 11:58:51 -08:00
Steve Lee 59db1f619e Fix symbolic links to libs on Debian 10 (#11390) 2019-12-27 17:14:51 -08: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
Steve Lee 27e1664e52 Add retry to Enter-PSHostProcess test (#11360) 2019-12-20 15:35:50 -08:00
Steve Lee 1f9c3c2abd Update error message if Update-Help fails for the current UICulture (#11356) 2019-12-20 15:16:26 -08:00
Steve Lee a1066ac0ac Use PositionMessage for the line context information for ConciseView (#11398) 2019-12-19 09:42:37 -08:00
Steve Lee 563b1cba83 Add trailing line number to filename for ConciseView (#11391) 2019-12-18 14:05:56 -08:00
Steve Lee 384a7ba2d7 Remove the declaration of Get-Error experimental feature from module manifest (#11369) 2019-12-18 09:41:27 -08:00
Steve Lee ab6b41dce3 Remove unnecessary newline in ConciseView (#11383)
* Add newline only if it's missing
2019-12-18 10:22:01 +05:00
Steve Lee edd3e7680c Move Set-StrictMode to outer scriptblock for ErrorView (#11381) 2019-12-17 23:43:47 +05:00
Steve Lee 03f10f052d Add -AsPlainText to ConvertFrom-SecureString (#11142) 2019-12-11 15:40:41 -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
Steve Lee ee4eba5348 Update calculation of char width to respect CJK chars correctly (#11262) 2019-12-05 08:09:56 +05:00
Steve Lee 03668e79af Add config.yml for ISSUE_TEMPLATE so that Doc, Security, Suppo… (#11153) 2019-12-04 15:08:14 -08:00
Steve Lee 8f4eb668c3 Add Adopters.md file (#11256)
* add Adopters.md file

* add example template
2019-12-03 14:40:21 -08:00
Steve Lee 51d2523f5f Update formatter to not write newlines if content is empty (#11193) 2019-12-02 10:51:02 -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 2f672538b2 Add Type member to Exceptions containing type of exception for Get-Error (#11076) 2019-11-22 12:57:52 -08:00
Steve Lee 0aaced35ad Update Get-Error to not modify the original $Error object (#11125) 2019-11-21 15:14:33 +05:00