1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 20:16:03 +01:00

repl: allow loading installables from CLI

repl: search installable with findAlongAttrPath
repl: refactor handling of args
repl: temp
This commit is contained in:
Tom Bereknyei 2022-02-18 18:33:03 -05:00
parent 06d57ce759
commit 81567a0962
3 changed files with 55 additions and 38 deletions

View file

@ -132,6 +132,7 @@ struct InstallableCommand : virtual Args, SourceExprCommand
InstallableCommand(bool supportReadOnlyMode = false);
void prepare() override;
std::shared_ptr<Installable> load();
std::optional<FlakeRef> getFlakeRefForCompletion() override
{