diff options
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/doctor.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/nix/doctor.cc b/src/nix/doctor.cc new file mode 100644 index 000000000000..fb4fc2a6e7e2 --- /dev/null +++ b/src/nix/doctor.cc @@ -0,0 +1,26 @@ +#include "command.hh" +#include "shared.hh" +#include "store-api.hh" + +using namespace nix; + +struct CmdDoctor : StoreCommand +{ + std::string name() override + { + return "doctor"; + } + + std::string description() override + { + return "check your system for potential problems"; + } + + void run(ref<Store> store) override + { + std::cout << "Store uri: " << store->getUri() << std::endl; + } +}; + +static RegisterCommand r1(make_ref<CmdDoctor>()); + |