Commit graph

6773 commits

Author SHA1 Message Date
Jani 812456f84c Improve Start-Sleep cmdlet to accept fractional seconds (#8537) 2019-01-14 10:04:44 -08:00
Reece Dunham e399b06cd2 Fix some typos in the README (#8623) 2019-01-11 16:47:11 -08:00
Steve Lee 6fa5195589 Update fuzzy test to fix daily build (#8629) 2019-01-11 16:45:49 -08:00
xtqqczze 00b45a55bc Remove 'en-us' from docs.microsoft.com URL (#8628) 2019-01-11 14:07:21 -08:00
Christoph Bergmeister [MVP] 1334b4cbf2 Update examples for hosting PSCore and remove old outdated examples (#8472) 2019-01-11 14:06:22 -08:00
Reece Dunham b30edf4764 Update the pull request template (#8624)
Some cleanup/enhancements to make it easier to understand.
2019-01-11 11:30:28 -08:00
Steve Lee 71e58f9439 Add the experimental feature 'PSUseAbbreviationExpansion' to support tab completion on abbreviated command names (#8109) 2019-01-10 16:11:43 -08:00
Steve Lee b87cd1c0a3 Add support to show suggestions on CommandNotFound exception (#8458)
* support fuzzy matching with get-command and on CommandNotFound exception, show suggestion
* fix CodeFactor issues
* change algorithm to use Damerau-Levenshtein Distance which is more useful in finding close matches
2019-01-10 13:35:30 -08:00
Reece Dunham a3d55783cd Contributing guidelines: Remove references to Travis CI and AppVeyor (#8617)
Since when was Travis-CI used??  I removed it and replaced it with `Azure DevOps` because that isn't there.
2019-01-10 13:05:22 -08:00
Steve Lee 66c72c4366 Change Clear-Host back to using $RAWUI and clear to work over remoting (#8609) 2019-01-10 10:02:59 -08:00
Steve Lee 9793ed2c68 Change hashtable to use OrdinalIgnoreCase to be case-insensitive in all Cultures (#8566)
Ubuntu18.04 seems to default to C.UTF-8 for LANG (representing InvariantCulture) which results in a case-sensitive hashtable since CurrentCultureIgnoreCase doesn't work for that culture. Fix is to use OrdinalIgnoreCase instead.
2019-01-10 09:11:43 +05:00
Kirk Munro 1729a682ee Make S.M.A.PowerShell.GetSteppablePipeline method public (#8055)
* make GetSteppablePipeline method public
* updated PowerShell member count
2019-01-09 15:31:09 -08:00
Ilya d80154430d Style: Change first char to upper in summary comments (#8597) 2019-01-09 13:07:40 -08:00
dependabot[bot] 8fad8c9dd8 Build(deps): Bump System.Security.Cryptography.Pkcs from 4.5.1 to 4.5.2 (#8614)
Bumps [System.Security.Cryptography.Pkcs](https://github.com/dotnet/corefx) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/dotnet/corefx/releases)
- [Commits](https://github.com/dotnet/corefx/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-09 22:07:03 +05:00
dependabot[bot] 16fbecd7bd Build(deps): Bump System.Net.Http.WinHttpHandler from 4.5.1 to 4.5.2 (#8615)
Bumps [System.Net.Http.WinHttpHandler](https://github.com/dotnet/corefx) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/dotnet/corefx/releases)
- [Commits](https://github.com/dotnet/corefx/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-09 18:54:30 +05:00
dependabot[bot] 8175047ae8 Build(deps): Bump NJsonSchema from 9.13.11 to 9.13.13 (#8616)
Bumps [NJsonSchema](https://github.com/rsuter/NJsonSchema) from 9.13.11 to 9.13.13.
- [Release notes](https://github.com/rsuter/NJsonSchema/releases)
- [Commits](https://github.com/rsuter/NJsonSchema/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-09 18:52:28 +05:00
dependabot[bot] cc3c3f618e Build(deps): Bump System.Text.Encoding.CodePages from 4.5.0 to 4.5.1 (#8613)
Bumps [System.Text.Encoding.CodePages](https://github.com/dotnet/corefx) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/dotnet/corefx/releases)
- [Commits](https://github.com/dotnet/corefx/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-09 18:51:32 +05:00
Ilya 6647b29f41
Fix LiteralPath in Import-Csv to bind to Get-ChildItem output (#8277)
Added new tests.
2019-01-09 18:49:15 +05:00
Michael Klement 73716e9792 Make scriptblock-based calculated properties work again in ConvertTo-Html (#8427) 2019-01-09 13:55:03 +05:00
Sergey Vasin 6f071f0ba5 Fix Join-String cmdlet FormatString parameter logic (#8449) 2019-01-09 11:06:20 +05:00
Steve Lee d6000fdea8 Allow Windows users in developer mode to create symlinks without elevation (#8534) 2019-01-08 10:43:24 -08:00
xtqqczze c1920da410 Update code coverage analysis document (#8543) 2019-01-08 10:18:46 -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 031cbf0f16 Change clear-host to simply called [console]::clear and remove clear alias from Unix (#8603)
Based on @PowerShell/powershell-committee decision, standardizing on [Console]::Clear() on all platforms and removing clear alias on non-Windows.
2019-01-08 22:38:56 +05:00
Dongbo Wang 4a63201139 Remove 'en-us' from our doc links (#8602) 2019-01-07 17:11:17 -08:00
Steve Lee d51b5fdc30 help function shouldn't use pager for AliasHelpInfo (#8552) 2019-01-07 13:39:57 -08:00
Reece Dunham c188666305 Name the spelling yaml something more appropriate (#8601)
* Rename spelling.yml to misc-analysis.yml
* Update mac.yml
* Update windows.yml
* Update README.md
2019-01-07 12:54:13 -08:00
Ilya f95dae55f7 Style: Use the type aliases 'char' and 'bool' instead of 'Char' and 'Boolean' (#8572) 2019-01-07 11:40:07 -08:00
Kirk Munro 23f6e8ff40 Add S.M.A.PowerShell.Create method overload with Runspace argument (#8057) 2019-01-07 11:04:42 -08:00
Ilya b8f9532b41 Style: Use the type alias 'string' instead of 'String' in places that are appropriate (#8573) 2019-01-07 10:46:00 -08:00
xtqqczze 379cbb60cd Correctly capitalize the ForEach operator in *.ps1 (#8583) 2019-01-06 17:00:56 +05:00
Steve Lee 21fcf070fb Remove unnecessary trim of passed-in command line in interactive debugging (#8594) 2019-01-05 18:47:34 -08:00
Ilya 233b54ed65 Style: Add a space after "//" in comments and remove unneeded comments after "}" (#8576) 2019-01-05 17:51:20 -08:00
Ilya 1be3f4cc0e Style: Add the ending period to the XML document texts (#8577) 2019-01-05 15:40:24 -08:00
Steve Lee 7ff5d4c681 Document First-time-issue and Hackathon/Hacktoberfest labels (#8575)
Seems like the convention is to have a `First-Time-Issue` to help first time contributors find easy issues they can work on to start learning about the project and make their first contribution.  Label is created, this PR adds documentation.  The `Hackathon`/`Hacktoberfest` label (changes depending on time of year) wasn't documented previously and added to issue management doc.

Fix https://github.com/PowerShell/PowerShell/issues/8562
2019-01-04 10:50:08 -08:00
xtqqczze f0f301bc5e Avoid use of mkdir alias in *.ps1 and *.psm1 (#8582) 2019-01-04 14:31:24 +05:00
Reece Dunham bb2440cdac Create link check task (#8471) 2019-01-03 14:47:59 -08:00
jwmoss 83064138a2 Updated linux build link (#8579)
Updated to redirect to docs page, as current link is a 404.
2019-01-03 12:28:47 -08:00
xtqqczze 1a3aadfc4e Regularize redirection operator spacing in *.ps1 and *.ps1m (#8581)
Add space after redirection operator.
2019-01-03 12:59:14 +05:00
Reece Dunham 705a1806cb Update contributing guidelines doc to run spellchecking in English (#8473)
Makes it clear in the contrib guidelines to check in English.
2019-01-02 14:53:58 -08:00
Greg Zimmerman 2a1b6ed9fe Add script to create icns files. (#7456)
Add script to generate macOS icon file. It does not attempt to integrate with the current build process as the macOS icon file is mostly static.

`libsvg` was chosen because of its low dependency count over other solutions that use backends like Chromium, PhontomJS, etc. ImageMagick's `convert` was tested but resulting PNGs where not satisfactory and would have required an overcomplicated script having to calculate the `density` argument.

* Has a dependency on librsvg (can be installed via Brew)
* Uses SVG file as input
* Can be integrated in later to build process if desired

Closes #7455
2019-01-02 12:11:47 -08:00
Steve Lee 725bfdaf88 Enable install of Preview MSI release side-by-side with Stable release (#8513)
When installing (or upgrading) Preview builds the component ids for the files are the same as the installed files from the stable MSI.  MSI sees this and assumes the file is already installed so skips installing files that haven't changed (been updated) which results in missing files in the preview install folder and pwsh fails to start.  Fix is to dynamically generate new component ids (and compoentrefs) in `files.wxs` using `_Preview` suffix and use that when building a preview package.

Tested manually.

cc @bergmeister if you can help validate different scenarios.

Fix https://github.com/PowerShell/PowerShell/issues/8289
2019-01-02 12:00:43 -08:00
Travis Plunk 878a46df20
get macOS to publish daily build to nugetfeed (#8464) 2019-01-02 11:55:14 -08:00
dependabot[bot] c44044d855 Build(deps): Bump Markdig.Signed from 0.15.5 to 0.15.6 (#8558) 2019-01-01 02:16:51 +05:00
dependabot[bot] 9cfab9d58f Build(deps): Bump NJsonSchema from 9.13.10 to 9.13.11 (#8569) 2019-01-01 02:16:09 +05:00
Ilya dfd2f69369
Style: Change 'String.' to 'string.' (#8568) 2018-12-31 20:44:16 +05:00
Ilya 56569b9315
Style: Replace String.IsNullOrEmpty with string.IsNullOrEmpty (#8557) 2018-12-31 15:10:15 +05:00
Ilya f31750c0d1
Fix typo in AMSI test (#8561) 2018-12-29 18:16:50 +05:00
Ilya 7207db6360
Style: Convert to upper first char in <param> and <exception> doc tags (#8556) 2018-12-29 08:25:49 +05:00
Ilya 479fc64aff
Style: Add period before </param> and </exception> doc tags (#8553) 2018-12-28 16:39:06 +05:00