Make nix describe-stores functional

Using the `*Config` class hierarchy
This commit is contained in:
regnat 2020-09-10 11:03:36 +02:00
parent 22afa8fb4d
commit dae39f0a7a

View file

@ -20,7 +20,11 @@ struct CmdDescribeStores : Command, MixJSON
{
if (json) {
auto availableStores = *implementations;
auto res = nlohmann::json::array();
for (auto & implem : *Implementations::registered) {
auto storeConfig = implem.getConfig();
std::cout << storeConfig->toJSON().dump() << std::endl;
}
} else {
throw Error("Only json is available for describe-stores");
}