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
239 stars 79 forks source link

Add Install-AWSToolsModule -Name validation & tab expansion #80

Closed tlindsay42 closed 2 years ago

tlindsay42 commented 4 years ago

For the AWS.Tools.Installer module's Install-AWSToolsModule cmdlet's Name parameter, adds validation, tab expansion, and a more specific error message on invalid values.

Description

Motivation and Context

Improving user experience. Closes #72

Testing

Screenshots (if appropriate)

Types of changes

Checklist

License

matteo-prosperi commented 4 years ago

During my tests for https://github.com/aws/aws-tools-for-powershell/pull/93 I discovered that Find-Module AWS.Tools.* is frequently not returning a full list of modules. So we shouldn't use it for validation of the -Name parameter. It could still be reasonable to provide tab completion without validation.

FireInWinter commented 4 years ago

I don't actually think Find-Module should be used at all in the install until it know what it is going to install. It should have the list of modules internally and then it would be trivial to implement tab completion. This would have side effects that any module being released would require the AWS.Tools.Installer to be updated as well. But then there aren't issues with trying to have Find-Module validate all possible modules.

github-actions[bot] commented 3 years ago

We have noticed this issue has not recieved attention in 3 years. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue.