nix flake deps: Remove --json flag for now

It doesn't produce valid JSON at the moment (but a concatenation of
JSON objects). Anyway we probably should merge this command info 'nix
flake info'.
This commit is contained in:
Eelco Dolstra 2019-05-28 13:22:11 +02:00
parent fdf06ce72f
commit e7e7a03baf
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -125,7 +125,7 @@ static void printNonFlakeInfo(const NonFlake & nonFlake, bool json)
}
// FIXME: merge info CmdFlakeInfo?
struct CmdFlakeDeps : FlakeCommand, MixJSON
struct CmdFlakeDeps : FlakeCommand
{
std::string name() override
{
@ -152,10 +152,10 @@ struct CmdFlakeDeps : FlakeCommand, MixJSON
todo.pop();
for (auto & nonFlake : resFlake.nonFlakeDeps)
printNonFlakeInfo(nonFlake, json);
printNonFlakeInfo(nonFlake, false);
for (auto & info : resFlake.flakeDeps) {
printFlakeInfo(info.second.flake, json);
printFlakeInfo(info.second.flake, false);
todo.push(info.second);
}
}