Justin Chung and Copilot
3d28915fff
Restore experimental feature cmdlets
...
Keep Enable-ExperimentalFeature and Disable-ExperimentalFeature aligned with master while retaining the MSIX configuration changes.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-29 10:11:06 -05:00
Justin Chung and Copilot
8fc58754d7
Scope system configuration to MSIX
...
Remove the experimental-feature mutation cmdlets while preserving discovery.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-28 15:43:06 -05:00
Justin Chung and Copilot
21ef653ff0
Use package-aware ProgramData for system configuration
...
Keep immutable product defaults in PSHOME while resolving writable machine configuration from ProgramData, isolated by package family for MSIX. Apply secure Windows ACLs, preserve policy and preference merge semantics, and remove Get-PowerShellConfiguration.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Copilot-Session: ab738c1b-4d18-491b-a40f-0515b586857b
2026-07-27 16:15:28 -05:00
Justin Chung
5252a123b4
Address copilot comments second
2026-05-27 12:42:51 -05:00
Justin Chung
5ff044a4b6
Fix xUnit test configuration to use temp directory for system config location.
2026-05-27 09:53:14 -05:00
James Truher [MSFT]
7f99fa1bf3
Get-Help may report parameters with ValueFromRemainingArguments attribute as pipeline-able ( #23871 )
...
* Remove FromRemainingArguments as an inputs indicator.
The parameter attribute FromRemainingArguments is not an indicator of pipeline input.
2024-06-03 21:20:55 +05:00
Dongbo Wang
ac559185d0
Add Aliases to the properties shown up when formatting the help content of the parameter returned by Get-Help ( #20994 )
2024-01-09 11:21:31 -08:00
Dominik Kaszewski
270f8f1be7
Allow partial culture matching in Update-Help ( #18037 )
2023-05-09 09:46:59 -07:00
Travis Plunk and Aditya Patwardhan
b2c4888ebb
Add Windows ARM64 CI ( #19040 )
...
* Add CI for win-arm64
* Add common function to test for windows arm64
* Update because string where items need investigation
---------
Co-authored-by: Aditya Patwardhan <adityap@microsoft.com >
2023-01-31 12:06:29 -08:00
xtqqczze
8e14d2d7aa
Enable get-help pattern tests on Unix ( #18855 )
2023-01-10 08:10:03 +05:00
Steve Lee
4f19c05547
Ensure HelpInfo.Category is consistently a string ( #18254 )
2022-11-15 17:57:03 -08:00
Dominik Kaszewski
1ee2f0d7ee
Fix Update-Help failing silently with implicit non-US culture. ( #17780 )
2022-08-09 15:51:32 -07:00
James Truher [MSFT]
1a24540e31
Enable more tests to be run in a container. ( #17294 )
2022-05-11 12:30:22 -07:00
James Truher [MSFT]
74a51aa16e
Use a random string for the missing help topic to improve the chances that the help topic really won't be found. ( #17042 )
2022-03-23 08:53:12 -07:00
James Truher [MSFT]
10027be363
Add -because to the failing test to aid in debugging ( #17030 )
2022-03-18 16:15:59 -07:00
Steve Lee
a9b14a13fd
Add exec cmdlet for bash compatibility ( #16462 )
2022-01-04 14:09:27 -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
Dongbo Wang
fc4c9cbfd7
Initial work of the subsystem plugin model (for minimal powershell) ( #13186 )
2020-08-20 17:41:44 -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
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
xtqqczze
2014ce66c1
Set StrictMode version 3.0 ( #11563 )
2020-02-03 09:44:10 -08:00
xtqqczze
e0d2e2aade
Correct case of $PSHOME special variable
2020-01-13 19:35:33 +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
Steve Lee and Travis Plunk
b8317de469
Update tests to account for when $PSHOME is readonly ( #9279 )
...
Co-Authored-By: SteveL-MSFT <slee@microsoft.com >
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com >
2019-04-04 23:01:01 -07:00
Staffan Gustafsson
0ebbdc1cc4
Fixing issue with help progress with Get-Help not calling Completed ( #8788 )
2019-03-11 11:26:01 -07:00
pougetat
1d7651f233
Fix Get-Help PSTypeName issue with -Parameter when only one parameter is declared ( #8754 )
2019-01-30 08:55:33 -08:00
pougetat
4858afb613
Resolve :PAGER' if its path contains spaces ( #8571 )
2019-01-16 15:14:44 -08:00
Sergey Vasin
279993bf39
Change Get-Help cmdlet -Parameter parameter so it accepts string arrays. ( #8454 )
2019-01-15 16:25:49 -08:00
Steve Lee
64fcddcb53
Help function should only pass content to pager if content was found (#8528 )
2019-01-08 09:56:56 -08:00
Steve Lee
d51b5fdc30
help function shouldn't use pager for AliasHelpInfo (#8552 )
2019-01-07 13:39:57 -08:00
Steve Lee
52aef57ab6
Add Enable-ExperimentalFeature and Disable-ExperimentalFeature cmdlets ( #8318 )
...
[breaking change]
Major changes are as follows:
- Add `Enable-ExperimentalFeature` and `Disable-ExperimentalFeature` cmdlets.
- Remove `-ListAvailable` from `Get-ExperimentalFeature`.
- Add `ArgumentCompleter` for `Get-ExperimentalFeature` cmdlet.
- Refactor some existing Experimental Feature tests.
- Make `ConfigScope` public and renamed `SystemWide` to `AllUsers`. Also update experimental feature code to prefer the current user config over the all user config.
2018-12-05 12:20:58 -08:00
Aditya Patwardhan
13e2559392
Fix Get-Help for advanced functions with MAML help content ( #8353 )
2018-11-30 09:49:32 -08:00
Dongbo Wang
bc8abf8efa
[Feature] Fix two tests
2018-07-06 13:28:20 -07:00
Steve Lee
3cc9d26bc2
Fix class searcher to ignore hidden properties ( #7188 )
2018-06-28 23:29:12 -07:00
Ilya
c1026b3ae8
Remove 'more' function and move the $env:PAGER capability into the help function ( #6059 )
2018-05-04 09:25:05 -07:00
Aditya Patwardhan
610ae1a63f
Update 'Update-Help' to save help content in user scope by default ( #6352 )
...
Add the parameter `-Scope` to `Update-Help`, which takes `AllUsers` or `CurrentUser`. The default value is `CurrentUser`.
2018-04-02 15:32:55 -07:00
Klaudia Algiz
090f8761e8
Use new Pester syntax: -Parameter for Pester tests in engine. ( #6298 )
...
* Use new Pester syntax: -Parameter for Pester tests in engine.
2018-03-14 12:13:32 -07:00
Klaudia Algiz
e76354758d
Add RequireSudoOnUnix tag for get-help <cmdletName> tests. ( #6223 )
2018-02-26 12:35:05 -08:00
Steve Lee
c1c5344a88
Update copyright and license headers ( #6134 )
...
Based on standard practices, we need to have a copyright and license notice at the top of each source file. Removed existing copyrights and updated/added copyright notices for .h, .cpp, .cs, .ps1, and .psm1 files.
Updated module manifests for consistency to have Author = "PowerShell" and Company = "Microsoft Corporation". Removed multiple line breaks.
Separate PR coming to update contribution document for new source files: #6140
Manually reviewed each change.
Fix #6073
2018-02-13 09:23:53 -08:00
Aditya Patwardhan
d6288a3e2f
Updated Help Uri to point to latest help content for Microsoft.PowerShell.Core module ( #5820 )
2018-01-08 16:37:59 -08:00
Aditya Patwardhan
381134ba59
Updated csproj to use the latest help package ( #5454 )
2017-11-15 16:29:04 -08:00
Steve Lee
5f5407595d
replace the word hang with something more appropriate ( #5358 )
2017-11-08 13:47:12 -08:00
Keith Hill
c781959232
Display full help with 'help' function ( #5195 )
...
Display full help with 'help' function
2017-11-06 10:19:39 -08:00
Aditya Patwardhan
486fb97123
Test fixes and code coverage automation fixes. ( #5046 )
...
* Test fixes and updates to code coverage automation
* Fixed UpdatableHelpSystem tests and tab completion tests
* Fixed tab completion tests to better disambiguate root/interop namespace.
* Skip SSH test if ssh.exe is not present
2017-10-13 13:54:43 -07:00
Steve Lee
8fdd68fbaa
[feature] ( #4954 )
...
remove unnecessary error messages from output
2017-09-29 14:35:13 -07:00
Chunqing Chen
f83e238082
add get-help tests for alias ( #4895 )
2017-09-28 08:47:42 -07:00
Aditya Patwardhan
2ae5d071ce
Fix about_* topic help issues and a few tab completion regressions ( #4014 )
2017-06-18 18:27:34 -07:00
Chunqing Chen
751dadab08
Fix the issue Get-Help does not support string pattern under Unix ( #3852 )
2017-06-06 18:06:51 -07:00
Chunqing Chen
5a82b10fc7
Get-Help should find help files under pshome ( #3528 )
2017-05-01 13:54:01 -07:00