Implemented json flag for nix flake info

This commit is contained in:
Nick Van den Broeck
2019-03-07 11:56:43 +01:00
parent cfb6ab80ce
commit 9ff1a9ea65
5 changed files with 29 additions and 5 deletions
+9
View File
@@ -27,6 +27,15 @@ void StoreCommand::run()
run(getStore());
}
JsonFormattable::JsonFormattable()
{
mkFlag()
.longName("json-formattable")
.shortName('j')
.description("output will be printed as json")
.handler([&]() { jsonFormatting = true; });
}
StorePathsCommand::StorePathsCommand(bool recursive)
: recursive(recursive)
{