GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — SetServiceCommand: Add positional parameter attribute by travisty- · Pull Request #5017 · PowerShell/PowerShell Conversation
Contributor
Added a positional parameter attribute to the InputObject parameter, Closes #4916.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsAdded a positional parameter attribute to the InputObject parameter, giving Set-Service behavior similar to the other *-Service cmdlets.
Travis Kinney (travisty-)
requested review from
Aditya Patwardhan (adityapatwardhan) and
Dongbo Wang (daxian-dbw)
as code owners
|
There was an error while loading. Please reload this page.
|
Travis Kinney (@travisty-) Please add tests for the new scenario at: https://github.com/PowerShell/PowerShell/blob/master/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Service.Tests.ps1 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hi Aditya Patwardhan (@adityapatwardhan) Dongbo Wang (@daxian-dbw), tests have been added for this scenario. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Travis Kinney (@travisty-) Thanks for your contribution! We should split formatting changes and code changes - this makes it easier to review and support code. Also if new test is under "Feature" CI tag please add |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Added a test to Set-Service validating InputObjects passed positionally.
|
Thanks for the feedback Ilya (@iSazonov). I'll submit the formatting improvements in a separate PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* 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.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.