RamblingCookieMonster / SecretServer

Secret Server PowerShell Module
MIT License
87 stars 28 forks source link

Get-Secret should have parameter sets #9

Closed Jaykul closed 8 years ago

Jaykul commented 8 years ago

If you make the search and id parameter sets, and make the ID default (since it's an integer), then I could call Get-Secret 42 or Get-Secret "Ultimate Question" and either would work correctly. Additionally, you'd be able to make the SearchTerm ValueFromPipeline without breaking your ability to pipe in secrets...