Implemented json flag for nix flake info
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user