aws / aws-tools-for-powershell

The AWS Tools for PowerShell lets developers and administrators manage their AWS services from the PowerShell scripting environment.
Apache License 2.0
236 stars 78 forks source link

Feature Request: Make 'Service' parameter positional for Get-AWSService #121

Closed ketanbhut closed 3 years ago

ketanbhut commented 4 years ago

Provide a general summary of the issue in the Title above.

Expected Behavior

Get-AWSService cw # returns similar results to Get-AWSService -Service cw

Current Behavior

Get-AWSService cw # returns error A positional parameter cannot be found ..

Possible Solution

Modify GetAWSServiceCmdlet to add Position=0 for Service parameter

Steps to Reproduce (for bugs)

Search for any module without -Service

Context

It is very frequent to search for module names when you have to work for a new set of Cmdlets for which you don't have module installed. -Service being the only parameter, it should be ok to make it positional.

Your Environment

Include as many relevant details about the environment where the bug was discovered.

ashishdhingra commented 3 years ago

Requires change in GetAWSServiceCmdlet class in https://github.com/aws/aws-tools-for-powershell/blob/master/modules/AWSPowerShell/Common/DiscoveryCmdlets.cs

ashishdhingra commented 3 years ago

This is fixed in AWS.Tools.Common 4.1.13.0.

github-actions[bot] commented 3 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.