9 ms·
--flagfile gets me really far but to be fair it sucks when you need nested kv
by rfoo 3y ago
--flagfile gets me really far but to be fair it sucks when you need nested kv
- enriquto 3y agojust use longer keys (with an ad-hoc separator, if you want)
- rfoo 3y agoWhat about lists? Something like: --allowed-downtime-0-start=20230523170000Z --allowed-downtime-0-end=20230523170500Z --allowed-downtime-1-start=... Or --allowed-downtime-start='20230523170000Z,...' I can live with them, but neither looks clean :( Genuine question, as I actually like the plain old flagfiles/Java-properties-ish style.
- enriquto 3y agoThe output produced by gron looks quite clean to me. You just write your file as if it was a list of js variable assignments. allowed-downtime[0][0] = 20230523170000Z allowed-downtime[0][1] = 20230523170500Z allowed-downtime[1][0] = ... or if you absolutely want the names, you can make a "list of dictionaries": allowed-downtime[0].start = ...