diff options
Diffstat (limited to 'src/nix/command.hh')
-rw-r--r-- | src/nix/command.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nix/command.hh b/src/nix/command.hh index fa6c21abf8ad..bb667ee325ca 100644 --- a/src/nix/command.hh +++ b/src/nix/command.hh @@ -33,8 +33,12 @@ struct StoreCommand : virtual Command std::string storeUri; StoreCommand(); void run() override; + ref<Store> getStore(); virtual ref<Store> createStore(); virtual void run(ref<Store>) = 0; + +private: + std::shared_ptr<Store> _store; }; /* A command that operates on zero or more store paths. */ |