forked from lix-project/lix
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:
parent
fdf06ce72f
commit
e7e7a03baf
|
@ -125,7 +125,7 @@ static void printNonFlakeInfo(const NonFlake & nonFlake, bool json)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: merge info CmdFlakeInfo?
|
// FIXME: merge info CmdFlakeInfo?
|
||||||
struct CmdFlakeDeps : FlakeCommand, MixJSON
|
struct CmdFlakeDeps : FlakeCommand
|
||||||
{
|
{
|
||||||
std::string name() override
|
std::string name() override
|
||||||
{
|
{
|
||||||
|
@ -152,10 +152,10 @@ struct CmdFlakeDeps : FlakeCommand, MixJSON
|
||||||
todo.pop();
|
todo.pop();
|
||||||
|
|
||||||
for (auto & nonFlake : resFlake.nonFlakeDeps)
|
for (auto & nonFlake : resFlake.nonFlakeDeps)
|
||||||
printNonFlakeInfo(nonFlake, json);
|
printNonFlakeInfo(nonFlake, false);
|
||||||
|
|
||||||
for (auto & info : resFlake.flakeDeps) {
|
for (auto & info : resFlake.flakeDeps) {
|
||||||
printFlakeInfo(info.second.flake, json);
|
printFlakeInfo(info.second.flake, false);
|
||||||
todo.push(info.second);
|
todo.push(info.second);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue