PoshCode / Configuration

A module to help other modules have settings
MIT License
176 stars 27 forks source link

Alternate Config Files #24

Open Jaykul opened 5 years ago

Jaykul commented 5 years ago

I've been thinking that we could easily add a parameter for the file name (defaulted to the current hard-coded Configuration.psd1) which would allow the file name to be specified ...

The idea would NOT be to let you customize the file names -- but to support different "sets" of configurations. That way if a module author wanted to switch between multiple named configurations they could just expose the name to their users ... or users who know you're using Configuration could just:

Get-Module YourModule | Import-Configuration -Set Special

So what should I call the parameter? We can't use Name because that's the parameter I'm using for the Module name.

michaeltlombardi commented 5 years ago

ConfigurationSet with Set as an alias makes the most sense to me.