From bcecc990071fd36bb88c8fd29cb009ed4c04d6a2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 25 Apr 2017 11:20:37 +0200 Subject: Restructure installables handling in the "nix" command --- src/nix/command.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/nix/command.hh') diff --git a/src/nix/command.hh b/src/nix/command.hh index fa6c21abf..bb667ee32 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 getStore(); virtual ref createStore(); virtual void run(ref) = 0; + +private: + std::shared_ptr _store; }; /* A command that operates on zero or more store paths. */ -- cgit v1.2.3