Closed tlindsay42 closed 2 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.
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.
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.
For the
AWS.Tools.Installer
module'sInstall-AWSToolsModule
cmdlet'sName
parameter, adds validation, tab expansion, and a more specific error message on invalid values.Description
AWS.Tools.Common.Completers
.$script:AWSToolsInstallerModuleName = 'AWS.Tools.Installer'
Motivation and Context
Improving user experience. Closes #72
Testing
AWS.Tools.Installer.psm1
, and tested tab completion for 1 & 2 module names with first 0, 2, & 10 characters, and then installed each successfully.Screenshots (if appropriate)
Types of changes
Checklist
License