Restructure installables handling in the "nix" command
This commit is contained in:
parent
1bb87c0487
commit
bcecc99007
9 changed files with 265 additions and 132 deletions
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue