about summary refs log blame commit diff
path: root/src/nix/doctor.cc
blob: fb4fc2a6e7e2b4e080841fbda9c864b27e68b868 (plain) (tree)

























                                                                   
#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>());