mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
repl: allow loading installables from CLI
repl: search installable with findAlongAttrPath repl: refactor handling of args repl: temp
This commit is contained in:
parent
06d57ce759
commit
81567a0962
3 changed files with 55 additions and 38 deletions
|
@ -1054,10 +1054,13 @@ InstallableCommand::InstallableCommand(bool supportReadOnlyMode)
|
|||
}}
|
||||
});
|
||||
}
|
||||
std::shared_ptr<Installable> InstallableCommand::load() {
|
||||
return parseInstallable(getStore(), _installable);
|
||||
}
|
||||
|
||||
void InstallableCommand::prepare()
|
||||
{
|
||||
installable = parseInstallable(getStore(), _installable);
|
||||
installable = load();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue