diff options
author | Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com> | 2022-07-12 09:12:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 09:12:00 +0200 |
commit | f071eb3702c7aa86fc1885321d73a3707ed702b6 (patch) | |
tree | 6ebb56e21b2f514348971bffd25250e3b1712e86 /src/nix/flake.cc | |
parent | 7e23039b7f491f8517309e0c20653d6d80c37dd7 (diff) | |
parent | 711b2e1f48316d80853635408c518e3562a1fa37 (diff) |
Merge pull request #6693 from ncfavier/complete-flake-inputs
Improve shell completion of flake inputs
Diffstat (limited to 'src/nix/flake.cc')
-rw-r--r-- | src/nix/flake.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc index c66b24e5c..e01bc6d10 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -50,9 +50,9 @@ public: return flake::lockFlake(*getEvalState(), getFlakeRef(), lockFlags); } - std::optional<FlakeRef> getFlakeRefForCompletion() override + std::vector<std::string> getFlakesForCompletion() override { - return getFlakeRef(); + return {flakeUrl}; } }; |