JuliaIO / ConfParser.jl

Julia package for parsing configuration files
Other
44 stars 17 forks source link

added support for keyonly files #32

Closed tbeason closed 4 years ago

tbeason commented 4 years ago

One other "configuration" is to simply save some value by itself in a file. I added support for this via the "keyonly" syntax. I assign the value to the key "key", eg

conf._data["key"] = "yoursavedkey"

I added tests and docstrings.

jonathanBieler commented 4 years ago

Looks good, thanks for the contribution! Just for my understanding, what are the use of these keyonly files ?

tbeason commented 4 years ago

A common way to store an API key so that it doesn't sneak its way into your public Github repo is to store it by itself in a file.

See for example https://github.com/micahjsmith/FredData.jl