Commit graph

5576 commits

Author SHA1 Message Date
Chunqing Chen 07d3b1806c Get-Content -Raw should not neglects to read the last character, if it is a LF (#5076) 2017-10-13 11:05:51 +04:00
Travis Plunk dc1a1cee33 Add release builds that produce symbols for compliance scans (#5086) 2017-10-12 14:48:53 -07:00
Tadas Medišauskas 844bf11dde Get-Verb: add verb descriptions and alias prefixes (#4746)
* Get-Verb: add descriptions and prefixes

* Add description and alias prefix tests

* Make the new classes internal

* Convert alias prefix to static method

* Move verb descriptions to a resource file

* Shorten function name

* Shorten alias prefix function name

* Change tests to look at counts

* Add uniqueness test

* Add missing alias prefixes

* Fix name collision

* Change alias prefix for Compare

* Rename method

* Remove unnecessary string allocation

* Make tests easier to diagnose
2017-10-12 14:40:06 -07:00
Dongbo Wang a391998a25 Support creating tarball package for Linux and macOS (#5085)
* Support creating tarball package for Linux and macOS

* Address comments
2017-10-12 13:36:46 -07:00
Steve Lee 6ca5d51782 [feature]
removed code to show a GUI prompt for credentials as PSCore6 prompts in console
2017-10-12 10:19:18 -07:00
Steve Lee 5bd8dd351f removed #if CORECLR statements merging code base 2017-10-12 10:18:24 -07:00
Steve Lee 46cdd7ec13 removed font and codepage handling code that is only applicable to Windows PowerShell
replaced LengthInBufferCells() method with Unicode adapted code from PSReadline
2017-10-12 10:17:13 -07:00
Steve Lee 856c2af3fe wrapped STA code sections in #if STAMODE for potential future use
removed -importsystemmodules switch from powershell.exe and related code
removed -consolefile parameter from powershell.exe and related code
2017-10-12 10:14:45 -07:00
Dave Wyatt 94a71b05d4 Fix ValueFromRemainingArguments to have consistent behavior between script and C# (#2038) 2017-10-11 17:09:59 -07:00
Indhu Sivaramakrishnan 2a9cd7211f Add tests for Dsc configuration compilation on Windows (#5011) 2017-10-11 10:49:35 -07:00
Mark Kraus f6864c3def Change to Read/Write Neutral Progress Messages for Web Cmdlets WriteToStream() (#5078)
* Create read/write neutral progress messages
2017-10-11 18:05:55 +04:00
Steve Lee 59311d03e1 Properly escape trailing backslash so that it doesn't end up escaping the quotes (#4965)
The native command receives the arg ".\test 1" as  .\test 1"  as the last  \"  is treated as escaping the quotes. Fix is to add an extra backslash to escape the last enclosing quote.
2017-10-11 18:01:09 +04:00
Raghav S 7dd36c9e34 Add NoNewLine switch for Out-String cmdlet (#5056) 2017-10-11 17:44:57 +04:00
Dongbo Wang f7bab36f5d Fix the prerequisite check of MSI package (#5070)
* Skip check 'vsruntime140.dll' on Win10

* Make the precheck accurate

* Update windows installation prerequisites

* Change 'higher' to 'above'

* Address comments

* Address more comments

* Address some more comments

* [Feature] Update the installer test
2017-10-10 16:40:07 -07:00
PetSerAl cd7ac4d436 Try to locate dotnet before installing it (#5059) 2017-10-10 14:01:01 -07:00
David Weber 42e8deb969 Add warning to Start-PSPester if Pester module not found (#5069)
Currently, if a user does not clone with the `--recursive` flag or run `git submodule update --init`, `Start-PSPester` will fail to run due to the missing Pester module. While the error hints at the Pester module not being found, there is no suggested way of fixing the issue presented to the user.
This change makes a helpful warning to appear at the beginning of the execution of `Start-PSPester` if the Pester module cannot be found.
2017-10-10 12:37:17 -07:00
Dongbo Wang 983409f80e Remove PSMI (#5075) 2017-10-10 11:31:59 -07:00
David Weber a1b7f8be3e Add submodule reminder to testing-guidelines.md (#5061) 2017-10-10 09:41:46 -07:00
Kyle Sferrazza 07536019bd Update Arch Linux installation instructions (#5048) 2017-10-10 09:40:23 -07:00
David Weber aea561f08d Add better error message for empty and null -UFormat arg (#5055)
Add better error message for empty and null -UFormat arg
2017-10-10 07:19:02 +04:00
Greg Zimmerman 68f318364c Add black version of icns for macOS. (#5073) 2017-10-09 17:31:00 -07:00
Jason Shirk 22662c8c56 Remove dead code (#5066)
Code guarded by the following defines is ancient and has never been
used, so removing.
* RELATIONSHIP_SUPPORTED
* SUPPORTS_IMULTIVALUEPROPERTYCMDLETPROVIDER
* SUPPORTS_CMDLETPROVIDER_FILE
Also removed some unused platform dependent unsafe code.
2017-10-09 17:28:10 -07:00
Dominic 590848cef4 Update docs/building/linux.md (#5068) 2017-10-09 17:24:04 -07:00
Dongbo Wang 55ce5dc86e Update script to get PSVersion from $PSVersionTable (#5045)
* Update script to get PSVersion from $PSVersionTable

* Address feedback

* Address cleanup comments

* Add back 'Remove-Item .\$fileName'

* Add the comment back too
2017-10-09 16:13:15 -07:00
Steve Lee 90165fc17c enable using filesystem from a UNC location (#4998)
* enable using filesystem from a UNC location

* [feature]
address PR feedback

* [feature]
removed changed in NavigationProviderBase and made change in FileSystemProvider where it should belong

* added variations of tests for set-location and push-location
no need to run [feature] anymore since it passed previously and the test case added is CI

* [feature]
move code to reproduce UNC path to GetParentPath()
2017-10-09 14:05:16 -07:00
Steve Lee 9d5823baeb Fix some output strings (#5065)
Commented out check for sudo as it was failing on Travis-CI
Updated version of Ruby to 2.3.3
Reorder install so Ruby gets installed before installing PS as Homebrew relies on Ruby 2.3
Remove sudo check which breaks Travis-CI
2017-10-09 13:23:29 -07:00
Steve Lee ff59be3c61 fix detection of whether -LiteralPath was used to suppress wildcardexpansion for navigation cmdlets (#5038)
* [feature]
fix detection of whether `-LiteralPath` was used to suppress wildcardexpansion

* [feature]
skip -literalpath test with asterisk in filename as that's not valid on Windows

* [feature]
added more variations of tests
2017-10-09 09:33:22 -07:00
Travis Kinney 1d5c310897 SetServiceCommand: Add positional parameter attribute (#5017)
* SetServiceCommand: Add positional parameter attribute

Added a positional parameter attribute to the InputObject parameter,
giving Set-Service behavior similar to the other *-Service cmdlets.

* Add test for positional InputObjects [Feature]

Added a test to Set-Service validating InputObjects passed positionally.
2017-10-09 09:30:50 -07:00
Dongbo Wang 5cec922941 Fix RPM package name in README.md (#5044) 2017-10-06 16:56:34 -07:00
Lucas Spits e1a0cafee8 User Agent now reports the OS platform (#4937)
Also include '<major>.<minor>' in UserAgent on windows platform.
2017-10-06 13:59:31 -07:00
Steve Lee 50607b9751 Enable support of folders and files with colon in name on Unix (#4959)
* [feature]
support folders and files with colon in name

* [feature]
only check separator in relation to colon if a colon is found

* [feature]
added comment to clarify algorithm

* added more tests
2017-10-06 11:27:15 -07:00
Mark Kraus 97ee17ccf4 Fix Delay Test Race Condition (#5035) 2017-10-06 11:17:52 -07:00
Mark Kraus 9843ef1ce5 Correct comma position in SecureStringCommands.resx (#5033)
The comma and the space needed to be swapped.
2017-10-06 11:01:45 -07:00
Ilya 50f6667bdb Cleanup Json cmdlets (#5001) 2017-10-06 09:03:53 -07:00
Steve Lee c83cf72dbf change logo in readme to current black logo (#5030) 2017-10-06 08:00:23 -07:00
Dongbo Wang da5bc0d1a4 Merge beta.8 release branch to master 2017-10-05 17:37:51 -07:00
Dongbo Wang 008d5e0e6e Replace CRLF with LF for two files under assets folder (#5025) 2017-10-05 16:45:27 -07:00
Travis Plunk 277b81141a Update ChangeLog for beta.8 release (#5006) 2017-10-05 16:43:08 -07:00
Paul Higinbotham 4bb9c5bf2c Fix for impliict remoting test (#5009)
Fix test setup that was using `New-PSSession` instead of the helper function `New-RemoteSession` that works with AppVeyor. Re-enabled the pending test since it now works. Also added a check to ensure WinRM remoting is enabled and an endpoint is available for PowerShell 6.0.
2017-10-05 16:16:21 -07:00
Steve Lee b7f3dfee81 Treat .rtf files as binary so EOL don't get changed (#5020) 2017-10-05 15:49:31 -07:00
Dongbo Wang 42b8f02858 Update docs for beta.8 release (#5024) 2017-10-05 15:46:07 -07:00
Steve Lee ba7dfcc0d0 Fix powershell to update the PATH environment variable only if PATH exists (#5021) 2017-10-05 14:23:52 -07:00
Ilya 87b34fe8cb Reformat command line help for powershell -Help (#4989) 2017-10-05 12:49:29 -07:00
Ilya ec1106a329 Add links on best practice guidelines in coding guideline (#4983) 2017-10-05 12:45:10 -07:00
Steve Lee 5eee6a8f38 Increase timing on test service side to avoid a race condition in the webcmdlet timeout test (#5005)
increase timing on test service side to avoid a race condition for the test
2017-10-05 09:46:33 -07:00
Steve Lee ffec170b22 Update Pi demo instructions if libunwind8 is not installed (#4974)
* added instructions to install libunwind8

* added missing period
2017-10-04 12:51:06 -07:00
Steve Lee 7f94412170 removed leading whitespace (#4991)
Add an optional extended description…
2017-10-04 08:14:26 +04:00
Paul Higinbotham 5b54e4d30f Fix for Linux platform PowerShell exit on error during SSH remoting connection (#4993)
* Fix for Linux platform PowerShell exit on error during SSH remoting connection

* Added comment for clarification per code review request
2017-10-03 18:19:45 -07:00
Dongbo Wang 718a6722c9 Fix Linux packages (#4994)
* Build one deb package for each Debian distro
* Build all deb packages with a single run of script
2017-10-03 14:29:43 -07:00
Steve Lee 464d6879b7 added demo for using Windows PowerShell modules (#4886)
* added demo for using Windows PowerShell modules

* fix spelling

* address PR feedback

* address PR feedback

* added WindowsPSModulePath to dictionary
2017-10-03 10:47:05 -07:00