Factor out --json
This commit is contained in:
parent
9b63bb88c8
commit
66577a1c64
3 changed files with 14 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue