Fork me on GitHub
#juxt
<
2023-05-07
>
Ben Sless09:05:10

In aero, how would you handle a config which is both a function of a command line argument (modeA vs modeB) and the runtime environment (prod, dev, test, etc)?

👀 2
andrea.crotti09:06:40

@UK0810AQ2 one way could be to generate all the possible profiles like

#profile {:mode-a-dev .. #mode-b-prod .. }
and then just generate the right profile to pass in when you get the config

andrea.crotti09:06:11

maybe a bit tedious but should work, otherwise you could implement your own profile reader that allows for the extra nesting