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
xtqqczze
70d9ed4d55
Remove Unicode BOM from text files ( #11546 )
2020-01-11 12:15:34 +05:00
Ilya
99cf9fd859
Re-balance CI tests ( #11420 )
2020-01-05 13:01:42 +05:00
David Smatlak
3923ca1728
Fixes FWLinks for PS7 online help documents ( #11071 )
2019-12-02 10:25:56 -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
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
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
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
a96b4c0404
Update use of "PowerShell Core" to just "PowerShell" ( #9513 )
2019-05-10 15:34:27 -07:00
Aditya Patwardhan
ade85b4faa
Multiple test fixes and improved logging for fragile tests ( #9569 )
2019-05-10 10:56:12 -07:00
Travis Plunk
cee1e54e75
Add ability to cross compile ( #9374 )
...
`-CrossGen` won`t work, but this gives basic ability to build for another platform.
This also means you cannot really package for another platform.
2019-04-16 14:14:29 -07:00
Steve Lee
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
xtqqczze
863528881f
Use https in URLs where available ( #8622 )
...
Use https in URLS across the repository where the domain serves content by https.
2019-01-24 12:50:11 -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
James Truher [MSFT]
98cf44cdec
Test changes needed for running in a container ( #7869 )
2018-09-28 13:49:31 -07:00
Steve Lee
769b02ab98
Save modules to un-versioned folder to enable servicing ( #7518 )
...
Remove code from build.psm1 that save the modules to a versioned folder. For servicing reasons after release it is preferred and easier to not have the versioned folder so that we can directly replace modules that need to be serviced (MSI specifically makes it difficult to service a module if the folder path changes).
2018-08-14 10:15:05 -07:00
Dongbo Wang
ca64bfb3e3
Update the 'HelpUri' for 'Get-ExperimentalFeature' ( #7466 )
2018-08-08 12:38:07 -07:00
Aditya Patwardhan
4e7c2ed663
Fix several issues in Markdown cmdlets ( #7329 )
...
- Formatting file should be used for `MarkdownOptionInfo` object instead of the types file for adding script property.
- Downlevel windows consoles which do not support VT100 escape sequences should be handled gracefully.
- Add helpuri fwlink for cmdlets.
- Make `-Path` a positional parameter for `ConvertFrom-Markdown`
- make `-InputObject` a positional parameter for `Set-MarkdownOption`
2018-07-27 17:26:35 -07: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
Aditya Patwardhan
d76cdc3c5c
Fix New-TemporaryFile online help URI ( #6608 )
2018-06-20 12:15:50 -07:00
Steve Lee
92cb949cac
Use PSReadLine 2.0.0-beta2 from PSGallery ( #6998 )
...
Removed building PSReadLine from the repository. Instead, change to downloading from PSGallery.
2018-06-06 09:42:19 -07:00
Klaudia Algiz
2df9aac811
Convert ShouldBeErrorId
to Should -Throw -ErrorId
in PowerShell tests ( #6682 )
...
Convert ShouldBeErrorId to Should -Throw -ErrorId in PowerShell tests.
Get rid of try { } catch { } formula to assert that errors were thrown.
Small fixes in tests to obey the new Pester -Parameter syntax.
2018-05-17 14:42:04 -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
Aditya Patwardhan
260c16ff4f
Mark Save-Help PackageManagement tests as pending ( #6545 )
2018-04-02 14:07:02 -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
Dongbo Wang
b30a614e5a
Enable the pending Save-Help tests in CI ( #6289 )
...
Some CI level 'Save-Help' tests were disabled in #2806 because HelpInfo URIs for powershell modules were broken (tracked by #2807 ). However, they were forgotten to be enabled when the URI issue was fixed. This PR reenables those tests.
2018-03-02 13:17:05 -08: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