Commit graph

6489 commits

Author SHA1 Message Date
Christoph Bergmeister [MVP] fe731eda14 Use dotnet test since the dotnet xunit test runner has been deprecated (#7980) 2018-10-09 20:55:41 -07:00
Steve Lee 339abe0609 Fix Enter-PSSession -ContainerId for the latest Windows (#7883)
Hyper-V team changed the type used to get the `runtimeid`. We need to check for new type and fall back to old type.
2018-10-09 14:24:25 -07:00
Victor Silva e29b5ee839 Add cURL to the Bash users list in README.md (#7948) 2018-10-09 16:17:46 +05:00
PRASOON KARUNAN V 112b485798 Converting aliases to cmdlets in 'build.psm1' (#7964) 2018-10-08 23:16:50 -07:00
Sergey Vasin 3b3160841e Standardize Pester syntax in 'ReplaceOperator.Tests.ps1' (#7963) 2018-10-08 23:15:53 -07:00
dependabot[bot] 6b6d5e3fd1 Bump Xunit.SkippableFact from 1.3.6 to 1.3.12 (#7972)
Bumps [Xunit.SkippableFact](https://github.com/AArnott/Xunit.SkippableFact) from 1.3.6 to 1.3.12.
- [Release notes](https://github.com/AArnott/Xunit.SkippableFact/releases)
- [Commits](https://github.com/AArnott/Xunit.SkippableFact/compare/v1.3.6...v1.3.12)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-10-08 11:07:54 -07:00
Christoph Bergmeister [MVP] e69ff5ed55 Update Markdig.Signed NuGet package from 0.15.3 to 0.15.4 (#7960) 2018-10-08 08:59:45 +05:00
Ilya 09f5471346
Use params in ImportPSModule (#7933) 2018-10-05 09:31:32 +05:00
Topping 20b2e3df37 No longer skips a column without name if double quote delimiter is used in Import-Csv (#7899) 2018-10-05 09:15:56 +05:00
Christoph Bergmeister [MVP] 49826a7a29 Specify verb, pwsh, for shell context menu to avoid overriding the default verb (#7932) 2018-10-04 11:08:15 -07:00
Vijayakrishna Pondala 97bcd8c88e Remove unused commented out code (#7935) 2018-10-04 15:17:38 +05:00
tommymaynard b941e62def Update governance.md (#7927)
Removed plural and added comma where necessary.
2018-10-03 15:21:32 -07:00
Ilya 371d25a74b Update to .NET Core 2.1.5 with SDK 2.1.403 (#7936) 2018-10-03 13:31:56 -07:00
Steve Lee abaf18680a Change default of Start-PSBuild to include -PSModuleRestore (#7881) 2018-10-03 12:49:24 -07:00
Jellyfrog 8f6bbdf11e Add dependencies for SUSE (#7938) 2018-10-03 12:29:13 -07:00
Ilya 8655576b58 Remove last hang term (#7931) 2018-10-03 10:45:36 -07:00
Stephen Owen 0789fb123a Updating incorrect example of PowerShell.Create() (#7926) 2018-10-03 20:20:38 +05:00
Ilya 450d884668
Add test for $error[0] tab completion (#7924) 2018-10-03 12:34:21 +05:00
Mathias R. Jessen 5e525ded8e Make Add-Type open source files with FileAccess.Read and FileShare.Read explicitly (#7915) 2018-10-03 08:36:11 +05:00
Felix Becker 97daeb59fb Add XSDs for Format and Types.ps1xml files (#7832)
These can be used for autocompletion and validation in editors
2018-10-02 16:13:45 -07:00
Aditya Patwardhan b42c001700 Cleanup all native code from repository (#7892)
Native code for PowerShell has been moved to repository PowerShell/PowerShell-Native.

Hence, removing all the native code and related build components.
2018-10-02 12:48:42 -07:00
Ilya 2ea815756d Update package minor versions (#7922) 2018-10-02 11:17:39 -07:00
Ilya d862d4075f
Add EscapeHandling parameter in ConvertTo-Json cmdlet (#7775)
Add EscapeHandling parameter in ConvertTo-Json cmdlet to allow escape the HTML (<, >, &, ', ") and control characters (e.g. newline).
2018-10-02 10:54:33 +05:00
Ilya d946121d7e
Use nameof() in bound parameters.contains key() (#7908)
Replace code like BoundParameters.ContainsKey("Delimiter") with BoundParameters.ContainsKey(nameof(Delimiter)). Old pattern come from old C# (<6.0) without nameof().
2018-10-02 08:23:10 +05:00
Ilya 0727f96d97
Replace hang term (#7902) 2018-10-02 08:11:38 +05:00
Travis Plunk cd18af03bc
Revert "install-powershell.sh: Adding autodetection of curl / wget" due to regression from PR #7893 (#7918)
This reverts commit 4831a9fd63.
2018-10-01 18:52:27 -07:00
Darwin 4831a9fd63 install-powershell.sh: Adding autodetection of curl / wget (#7893)
install-powershell.sh now autodetects whether curl or wget is installed to download secondary script when it is not found locally.
2018-10-01 16:36:46 -07:00
Robert Holt 649d342a07 Replace test certificates with self-signed certificate generating command (#7875) 2018-10-01 14:40:48 -07:00
Ilya 3b9f75865e Add .editorconfig (#7357)
Related #4708.

The .editorconfig file can be used by various editors and tools like Visual Studio and CodeFormatter.

The .editorconfig comes from Roslyn and CoreFX repositories:
https://github.com/dotnet/corefx/blob/master/.editorconfig
https://github.com/dotnet/roslyn/blob/master/.editorconfig

Description http://EditorConfig.org

Options https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
2018-10-01 13:40:21 -07:00
Travis Plunk 549939d968
Remove unused stopwatch (#7878) 2018-10-01 13:16:15 -07:00
RDIL bc4575f55a Optimize Images! (#7874)
My pal @ImgBotApp optimized all the images present in the repository.
2018-10-01 13:15:37 -07:00
Darwin 4dae2825e1 Ffixing syntax error in installpwsh-amazonlinux.sh (#7905)
* Fix syntax error for issue 7903. Typo come from #6849 

* Add identation after copyright message
2018-10-01 14:58:14 +05:00
Benjamin P. McKenna 39252b4938 Add '%F' case to Get-Date -UFormat (#7630) 2018-10-01 08:39:14 +05:00
James Truher [MSFT] 98cf44cdec Test changes needed for running in a container (#7869) 2018-09-28 13:49:31 -07:00
Steve Lee cc44781b5b Ensure NestedModules property gets populated by Test-ModuleManifest (#7859) 2018-09-28 13:28:08 -07:00
Joel Sallow 8f4b66af29 Add C#-style type accelerators and suffixes for ushort, uint, ulong, and short literals (#7813)
[breaking change]
Add the following type accelerators: [short], [ushort], [uint], [ulong].
Add the following numeric literal suffixes:
 - 'u' suffix (uint/ulong)
 - 's' suffix (short)
 - 'ul' suffix (ulong)
 - 'us' suffix (ushort)
2018-09-28 13:27:32 -07:00
PRASOON KARUNAN V e6702fe780 Get/Add-Content throws improved error when targeting a container (#7823) 2018-09-28 20:36:13 +05:00
Robert Holt bd5f7719bc Add version checking tests for Import-Module (#7499) 2018-09-27 17:08:54 -07:00
Andrew bc5fe72096 Updating test gallery URL in PackageManagement tests (#7879) 2018-09-27 14:23:10 -07:00
Sergey Vasin 2291a898c3 Add 'TimeToLive' and 'Hops' aliases to MaxHops parameter of Test-Connection cmdlet. (#7850)
Add the following aliases to MaxHops parameter of Test-Connection cmdlet:
- TimeToLive
 It is the similar parameter's name from Windows PowerShell Test-Connection cmdlet .
- Hops
 Similar parameter's name from Test-NetConnection cmdlet.
2018-09-27 15:59:10 +05:00
Dongbo Wang 0cce2ae44e Clean up MshObject.cs and MshMemberInfo.cs (#7446)
Clean up style issues.
2018-09-26 09:27:43 +05:00
Travis Plunk b5c39c1a36
Bump Microsoft.PowerShell.Native from 6.1.0-rc.1 to 6.1.0 (#7861) 2018-09-25 17:53:13 -07:00
Dongbo Wang 4926e15984
Make Start-PSPackage give better message about how to fix 'files.wxs' (#7841) 2018-09-25 09:53:42 -07:00
Steve Lee 769ba7b95c Update PowerShellGet to 2.0.0 (#7831) 2018-09-24 14:58:13 -07:00
Travis Plunk 8a0abf459c
update markdown tests (#7838)
update markdown tests

  - explicitly use gulp 4.0 beta because 3.9 depends on a vulnerable package
2018-09-24 10:14:43 -07:00
Frank Behrens 84634445ce Improve markdown Formatting of beginners guide (#7684) 2018-09-24 09:57:53 -07:00
Dongbo Wang 0f0c46dfe5 Update to .NET Core 2.1.4 with SDK 2.1.402 (#7834) 2018-09-21 13:25:03 -07:00
Dongbo Wang b6d12a35ed [Feature] Fix .NET adapter to be able to get members from System.IntPtr (#7808)
The type System.IntPtr has an explicit cast operator defined that takes a pointer type System.void* parameter. Now we handle that type properly in GetPSMethodProjectedType.
2018-09-20 08:15:42 +05:00
Staffan Gustafsson eb286332cf Create inferred types for Select-Object, Group-Object, PSObject and Hashtable (#7231)
Fixes #7230.

Adding the concept of a PSSyntheticTypeName, derived from PSTypeName,
that extends it with a list of synthetic members.

This allows us to express the inferred type of
```
[pscustomobject] @{
   A = 1
   B = "2"
}
```
as a "PSObject#A:B" and with information about the types of A and B.

This is also used to annotate the output of
```
Select-Object -Property
Select-Object -ExcludeProperty
Select-Object -ExpandProperty
```
Finally, it adds information about the types of the
`Group` and `Value` properties of the output of `Group-Object`
2018-09-19 15:43:22 -07:00
Ilya 985928be7b
Remove extra space in LastWriteTime format (#7810) 2018-09-19 19:11:05 +05:00