Closed tlindsay42 closed 2 years ago
Hi. Thanks for opening this issue.
We didn't create a validated set for the Name
parameter because it would require updating the AWS.Tools.Installer
module every time we add a new AWS.Tools
module. Also a user would need to update AWS.Tools.Installer
first in order to be able to use it to install other modules.
An alternative solution would be to create a completer script like https://github.com/aws/aws-tools-for-powershell/blob/master/modules/ModularAWSPowerShell/AWS.Tools.Common.Completers.psm1.
We have noticed this issue has not recieved attention in 1 year. We will close this issue for now. If you think this is in error, please feel free to comment and reopen the issue.
Expected Behavior
The
Name
parameter of theInstall-AWSToolsModule
cmdlet should use the ValidateSet functionality to provide tab completion of values and more helpful error messages for invalid values.Current Behavior
The
Name
parameter of theInstall-AWSToolsModule
cmdlet does not feature tab completion provided by ValidateSet. Also, the resulting error from invalid values is not very helpful.Possible Solution
Add a ValidateSet to the
Name
parameter of theInstall-AWSToolsModule
cmdlet.Context
I had to review the Examples to understand what the valid values were.
Your Environment
Include as many relevant details about the environment where the bug was discovered.
Get-AWSPowerShellVersion
: 1.0.0.0 (NOTE: I haven't installed AWS.Tools.Common yet on my Windows PowerShell 5.1 version yet, soGet-AWSPowerShellVersion
isn't available, so you may want to adjust the suggestion here)$PSVersionTable.OS
: Microsoft Windows 10.0.17763 (NOTE:$PSVersionTable.OS
is not a valid property in Windows PowerShell, so I had to run this from my PowerShell 6.2 instance)$PSVersionTable.PSEdition
: Desktop