SetServiceCommand: Add positional parameter attribute - #5017
SetServiceCommand: Add positional parameter attribute#5017Aditya Patwardhan (adityapatwardhan) merged 2 commits into
Conversation
Added a positional parameter attribute to the InputObject parameter, giving Set-Service behavior similar to the other *-Service cmdlets.
|
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 |
|
Hi Aditya Patwardhan (@adityapatwardhan) Dongbo Wang (@daxian-dbw), tests have been added for this scenario. |
|
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 |
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. |
* 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.
Added a positional parameter attribute to the InputObject parameter,
giving Set-Service behavior similar to the other *-Service cmdlets.
Closes #4916.