twokul / yam

Dead simple storage interface
MIT License
5 stars 10 forks source link

[Feature] API for yam.set() #7

Open runspired opened 9 years ago

runspired commented 9 years ago

It looks as though yam used to have the ability to write as well as to read variables. https://github.com/twokul/yam/commit/6fce91e1af8a75f5b4bdb08abad035915dec59d4

I'm working on a PR for ember-cli-cordova that will require storing a configuration setting in .ember-cli when the main blueprint generation is done.

It would add both a namespace (cordova) and a setting (multiEnv):

   cordova : {
       multiEnv : true
   }

Is .set() a feature that we could bring back? It does obviously make yam a little more clunky to avoid stripping comments, but it would be great to have a lib for writing to config files from ember-addons.

selvagsz commented 8 years ago

:+1: for this feature. Curious to know the reason behind the removal of .set ?