Factor out --json

This commit is contained in:
Eelco Dolstra 2017-04-24 14:21:36 +02:00
parent 9b63bb88c8
commit 66577a1c64
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 14 additions and 8 deletions

View file

@ -7,13 +7,10 @@
using namespace nix;
struct CmdShowConfig : Command
struct CmdShowConfig : Command, MixJSON
{
bool json = false;
CmdShowConfig()
{
mkFlag(0, "json", "produce JSON output", &json);
}
std::string name() override