mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 05:26:02 +01:00
Add --eval-store option
This commit is contained in:
parent
dfda499326
commit
bef40c2949
5 changed files with 57 additions and 18 deletions
|
|
@ -289,19 +289,6 @@ void completeFlakeRefWithFragment(
|
|||
completeFlakeRef(evalState->store, prefix);
|
||||
}
|
||||
|
||||
ref<EvalState> EvalCommand::getEvalState()
|
||||
{
|
||||
if (!evalState)
|
||||
evalState = std::make_shared<EvalState>(searchPath, getStore());
|
||||
return ref<EvalState>(evalState);
|
||||
}
|
||||
|
||||
EvalCommand::~EvalCommand()
|
||||
{
|
||||
if (evalState)
|
||||
evalState->printStats();
|
||||
}
|
||||
|
||||
void completeFlakeRef(ref<Store> store, std::string_view prefix)
|
||||
{
|
||||
if (prefix == "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue