AlexanderZhirov / readconf

Reading the configuration file (this repository is just a mirror)
https://git.zhirov.kz/dlang/readconf
GNU General Public License v2.0
1 stars 0 forks source link

some questions? #1

Closed lulcat closed 1 month ago

lulcat commented 2 months ago

Hi. It seems like this does not support linebreakup continuation with \

so it just ignores the rest of \ this line unlike pretty much everything else.

One might not wish to allow this in compatible config files but dunno. It breaks with every tradition out there. Thoughts?

Also, it could/would? be nice if it recognises shell like syntax, again multiline, e.g. a *sh array:

arr=("hi" 'there' I live "in" 'different' lines)

your config doesn't handle this well.

e.g. a bash/zsh config file with # as comments and using '\' for mmulti lines or arrays over sevceral lines and so on, all will be correctly 'parsed' by say

grep -vE '^[[:space:]]*#|^$'

for php ini or stuff using ; I suppose # can be replaced with that and so on.

yous fails to read them and so I feel it's hmm, a lot of yi haa but missing fundamental./practical compatibility.

Of course, one can define a 'custom' config style which suits it I guess but just throwing this out there.

one liner process.spawn grep ...

AlexanderZhirov commented 2 months ago

@lulcat Hi! When writing, I did not include recognition of multiline parameters. Just reading the configuration with one-line parameters.

But it's an interesting idea)

lulcat commented 1 month ago

:) good stuff. I will keep an eye on it. Cheers.