Make NIX_SHOW_STATS work with new-style commands
This commit is contained in:
@@ -280,6 +280,12 @@ ref<EvalState> EvalCommand::getEvalState()
|
||||
return ref<EvalState>(evalState);
|
||||
}
|
||||
|
||||
EvalCommand::~EvalCommand()
|
||||
{
|
||||
if (evalState)
|
||||
evalState->printStats();
|
||||
}
|
||||
|
||||
void completeFlakeRef(ref<Store> store, std::string_view prefix)
|
||||
{
|
||||
if (prefix == "")
|
||||
|
||||
Reference in New Issue
Block a user