xtqqczze
eaad6c2235
Fix accessor order ( #13538 )
...
* Fix Microsoft.PowerShell.Commands.Utility
* Fix System.Management.Automation
* Fix Microsoft.Management.Infrastructure.CimCmdlets
* Fix Microsoft.PowerShell.Commands.Management
* Fix Microsoft.WSMan.Management
2020-11-05 10:05:50 +05:00
xtqqczze
03a0ef26e6
Fix RCS1098: Constant values should be on right side of comparisons ( #13833 )
...
* Fix RCS1098: Constant values should be on right side of comparisons
https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1098.md
2020-11-05 09:13:12 +05:00
xtqqczze
cc6ce4f66d
Fix IDE0044: MakeFieldReadonly part 14 ( #13969 )
2020-11-03 08:47:07 -08:00
3beeea49af
Revert "Add the parameter -Paged to Get-Help to support paging ( #13374 )" ( #13519 )
...
Co-authored-by: Travis Plunk <travis.plunk@microsoft.com >
Co-authored-by: Dongbo Wang <dongbow@microsoft.com >
2020-09-02 15:00:19 -07:00
Aditya Patwardhan
485ec44005
Add the parameter -Paged to Get-Help to support paging ( #13374 )
2020-08-11 15:51:00 -07:00
Dongbo Wang
4b9b0788ed
Revert "Use is null syntax ( #13277 )" ( #13322 )
...
This reverts commit 6c03776d74 .
2020-07-30 16:06:38 -07:00
xtqqczze
6c03776d74
Use is null syntax ( #13277 )
...
Replace `== null` with `is null`
2020-07-30 18:04:03 +05:00
Steve Lee
b7cb335f03
Update copyright notice to latest guidance ( #12190 )
2020-03-24 11:08:37 -07:00
David Smatlak
3923ca1728
Fixes FWLinks for PS7 online help documents ( #11071 )
2019-12-02 10:25:56 -08:00
Dongbo Wang
3768be1b21
Remove the not-working 'run Update-Help from Get-Help when Get-Help runs for the first time' feature ( #10974 )
2019-11-07 11:54:22 -08: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
Kirk Munro
f06c06e589
Deprecate internal HelpCategory.Workflow enumeration ( #10319 )
2019-08-15 08:16:35 +05:00
Ilya
5d98b901be
Cleanup workflow code ( #9638 )
...
* Remove WorkFlowInfo type
* Remove condition for UseSharedProcess
* Remove PSWorkflowJob condition
* Remove workflow from ValidateSet
* Remove workflow from CommandTypes enum
* Remove workflow from EventManager
* Remove workflow from Get-Help
* Remove WorkflowFileExtension ".xaml" from ModuleIntrinsics
* Remove WorkflowFileExtension ".xaml" from ModuleCmdletBase
* Remove workflow from PSModuleInfo
* Remove workflow from CustomShellCommands
* Remove workflow from InitialSessionStateProvider
* Remove WriteWorkflowDebugNotSupportedError()
* Remove unneeded resource strings from Module.cs
* Remove xaml from valid extension list
2019-07-07 01:03:03 +05:00
Ilya
bd6fdae735
Cleanup: sort usings ( #9490 )
2019-04-30 10:25:11 +05:00
Staffan Gustafsson
0ebbdc1cc4
Fixing issue with help progress with Get-Help not calling Completed ( #8788 )
2019-03-11 11:26:01 -07:00
Sergey Vasin
279993bf39
Change Get-Help cmdlet -Parameter parameter so it accepts string arrays. ( #8454 )
2019-01-15 16:25:49 -08:00
Ilya
1be3f4cc0e
Style: Add the ending period to the XML document texts ( #8577 )
2019-01-05 15:40:24 -08:00
Ilya
479fc64aff
Style: Add period before </param> and </exception> doc tags ( #8553 )
2018-12-28 16:39:06 +05:00
Ilya
871ce5696d
Style: Add period before returns doc tag ( #8535 )
...
- add period before "</returns>" doc tag
- remove extra space before "</returns>" doc tag
- convert first char after "<returns>" doc tag to upper case
2018-12-25 21:43:03 +05:00
Steve Lee
4af3068566
Code cleanup: Add space after closing brace where needed ( #8530 )
...
* Update TestService
* Update WebListener
* Update Controllers
* Update ExpTest
* Update MyApp
* Update Logic
* Update Logic
* Update MyApp
* Update Microsoft.Management.Infrastructure.CimCmdlets
* Update Microsoft.PowerShell.Commands.Diagnostics
* Update Microsoft.PowerShell.ScheduledJob
* Update Microsoft.WSMan.Management
* Update Microsoft.WSMan.Runtime
* Update ResGen
* Update TypeCatalogGen
* Update commands
* Update Eventing
* Update Reader
* Update utility
* Update ShowCommand
* Update trace
* Update WebCmdlet
* Update Common
* Update CoreCLR
* Update common
* Update format-object
* Update format-wide
* Update out-file
* Update out-printer
* Update out-string
* Update OutGridView
* Update LocalAccounts
* Update Commands
* Update security
* Update CoreCLR
* Update DscSupport
* Update engine
* Update help
* Update logging
* Update namespaces
* Update security
* Update utils
* Update config
* Update perfCounters
* Update tracing
* Update cmdletization
* Update other
* Update cim
* Update xml
* Update CoreCLR
* Update common
* Update DefaultFormatters
* Update out-console
* Update out-textInterface
* Update DisplayDatabase
* Update Utilities
* Update COM
* Update ComInterop
* Update CommandCompletion
* Update debugger
* Update ExperimentalFeature
* Update hostifaces
* Update interpreter
* Update lang
* Update Modules
* Update parser
* Update runtime
* Update client
* Update commands
* Update common
* Update fanin
* Update server
* Update WireDataFormat
* Update Binding
* Update Operations
* Update interface
* Update cmdletization
* Update cim
* Update management
* Update WindowsTaskbarJumpList
* Update msh
2018-12-24 11:20:06 +05:00
Dongbo Wang
c5733f872c
Style: Member access symbols should be followed with member name ( #8517 )
2018-12-22 12:15:47 +05:00
Sergey Vasin
740d059d51
Change parameters order in Get-Help and help in order to get first -Full and then -Functionality when using Get-Help -Fu<tab> and help -Fu<tab>. ( #7370 )
2018-07-31 11:13:18 +05:00
Steve Lee
06960346a1
Enable UseShellExecute on all platforms ( #7198 )
...
Previously, we limited use of UseShellExecute when starting a new process to only Windows Desktop. However, CoreFx now supports UseShellExecute (appropriately calling `open` on macOS and `xdg-open` on Linux) so we can have a consistent code and remove some of the existing redundant code or unnecessary limiting code.
2018-07-02 12:50:19 -07:00
Ilya
4fc784e840
Bulk update code base to put 'null' on the right-hand-side of a comparison expression ( #6949 )
2018-06-25 14:37:09 -07:00
Ilya
e177fcaef6
CodeFactor code style cleanup: replace literal empty strings with 'string.Empty' ( #6950 )
2018-06-12 12:30:10 -07: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
Steve Lee
4bc52d2358
Use consistent '(c)' for copyright symbol ( #5210 )
...
- Remove the year about copyright
- Fix casing of `All rights reserved`
- Replace Unicode characters representing single quote with a single quote
2017-10-26 14:12:19 -07:00
Steve Lee
ffa0701200
remove unsupported -showwindow switch ( #4903 )
2017-09-27 17:51:56 -07:00
Steve Lee
7c9b188c13
Rename $IsOSX to $IsMacOS ( #4757 )
2017-09-07 10:34:40 -07:00
Dongbo Wang
384a9fe3fc
Clean up ShellExecute code to use the .NET Core implementation ( #4523 )
...
* Clean up ShellExecuteHelper and enable ShellExecute in NativeCommandProcessor
* Minor fix
* [Feature] Fix NativeCommandProcessor to clean up in case an exception is thron
* [Feature] Update tests
* [Feature] Address comments
* address one more comment
* Address some more comments
2017-08-10 13:32:57 -07:00
James Truher [MSFT]
71392a2666
Disable UTC and SQM telemetry by enclosing the code in '#if LEGACYTELEMETRY' ( #4190 )
2017-07-17 09:44:54 -07:00
Dongbo Wang
7f83c48ca5
Add support to ShellExecute in powershell core when it's running on Windows full SKUs ( #3281 )
...
* Add ShellExecute support to PowerShell core on windows full desktop
* Add tests for Start-Process and update existing related tests
2017-03-14 11:11:41 -07:00
Jason Shirk
02b5f357a2
Remove trailing whitespace ( #3001 )
2017-01-16 13:31:14 -08:00
Dave Wyatt
177c99de93
Adding ValidateNotNullOrEmpty attribute to parameters listed in #2672 ( #2685 )
2016-12-08 10:28:55 -08:00
Francisco Gamino
d717458e7d
Fixing get-help <cmdletName> -online for .NET Core on Desktop. ( #2174 )
...
In PS Core on windows, we try to locate the default web browser and use it for online help. If we cannot find the default web browser (in NanoServer/IoT), we error out.
2016-10-12 12:16:32 -07:00
Dongbo Wang
58a2ba730d
Merge pull request #2046 from xiaoyinl/use-https-links
...
Use HTTPS links for go.microsoft.com
2016-09-01 17:23:09 -07:00
Josh Soref
92a121a655
spelling: comments in src/System.Management.Automation/help
2016-08-28 05:48:06 +00:00
xiaoyinl
f538eeb416
Use HTTPS links for go.microsoft.com
...
I replace all occurrences of http://go.microsoft.com with https://go.microsoft.com in text files.
2016-08-23 21:21:31 -04:00
PowerShell Team
85d6e9f022
Refactoring - adjust modifiers declaration order
2016-08-03 12:14:28 -07:00
PowerShell Team
ae8d2ed794
Refactor - convert to auto-property
...
Mostly using R# to automatically refactor, with some manual
fixups where it wouldn't work automatically (e.g. xml comments
on fields) or some it seemed to miss.
Some minor code reformatting was also done on properties near
other stuff I was manually inspecting.
2016-08-03 12:14:28 -07:00
PowerShell Team
403ae3f53f
Initial run of code formatter
...
I (Jason Shirk) ran https://github.com/dotnet/codeformatter with the default rules, basically:
codeformatter /nocopyright "/c:DEBUG,UNIX,CORECLR" @files.rsp
This caused a few problems building, which were fixed up manually.
Notable changes:
`this.` is removed unless needed to disambiguate.
private instance fields are renamed to have a `_` prefix.
private static fields are renamed to have a `s_` prefix.
I left some projects alone (like PackageManagement) and also left some generated code alone.
2016-08-01 15:57:03 -07:00
Jason Shirk (POWERSHELL)
673dd2c355
Change preprocessor macro LINUX to UNIX
2016-07-22 10:49:45 -07:00
Andrew Schwartzmeyer
50e6627a8e
Throw PlatformNotSupported on Windows .NET Core build
2016-07-08 14:08:22 -07:00
Andrew Schwartzmeyer
6200f084cd
Invoke-Item and Get-Help -Online are unsupported on Nano
...
These currently fail at runtime on Nano, and will continue to do so. But
this implements these much needed cmdlets for Open PowerShell.
If there is a way to determine that PowerShell is being run on the Nano
OS at runtime, then we could instead throw a platform unsupported
exception, but this cannot be based on the target compilation framework,
as .NET Core is shared for both Nano and Windows.
2016-07-08 13:48:36 -07:00
Andrew Schwartzmeyer
afc1d8a459
Use start in Get-Help -Online to open URL on Windows
2016-07-08 13:48:36 -07:00
Andrew Schwartzmeyer
ce2e5d6492
Set UseShellExecute to false in Get-Help
2016-07-08 13:48:36 -07:00
PowerShell Team
3998ce06ba
Update files from Source Depot changeset [SD:700586]
...
Corresponds to 84837459913bb00660964d19ea07f5e0c7b4b442 in psl-monad.
2016-04-28 13:53:04 -07:00
Andrew Schwartzmeyer
70c23dacd7
Fix Get-Help -Online
...
While Windows will automatically open a URL used as a process by
launching a browser, OS X needs to use `open <URL>`, and Linux needs to
use `xdg-open <URL>` (the most distribution-independent way).
Resolves #802 .
2016-04-09 18:05:49 -07:00
PowerShell Team
60b3b304f2
Move files from psl-monad submodule to super-project
...
This commit uses psl-monad branch source-depot 7209cb9
And corresponds to [SD:688741]
2016-03-30 17:16:23 -07:00