loganasherjones / yapconf

Yet Another Python Configuration
http://yapconf.readthedocs.io/en/stable/
MIT License
18 stars 4 forks source link

"Ephemeral" spec options #57

Closed hazmat345 closed 6 years ago

hazmat345 commented 6 years ago

I think it'd be very helpful to have a flag that would prevent an item from being written to configuration file.

I have a configuration file option in my spec to make it easy for users to specify one from the command line. But this doesn't really make sense inside the file.

loganasherjones commented 6 years ago

Hmm, I think I would like to use the bootstrap identifier for this. I could see a flag on migrate_config_file that allows you to specify include_bootstrap

hazmat345 commented 6 years ago

I agree, a bootstrap-type item is the only place where I think this makes sense.

You may want the flag on generate_config (is that the name?) as well to prevent bootstrap entries from showing up there.