aboutsummaryrefslogtreecommitdiff
path: root/src/nix/flake.cc
diff options
context:
space:
mode:
authorThéophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>2022-07-12 09:12:00 +0200
committerGitHub <noreply@github.com>2022-07-12 09:12:00 +0200
commitf071eb3702c7aa86fc1885321d73a3707ed702b6 (patch)
tree6ebb56e21b2f514348971bffd25250e3b1712e86 /src/nix/flake.cc
parent7e23039b7f491f8517309e0c20653d6d80c37dd7 (diff)
parent711b2e1f48316d80853635408c518e3562a1fa37 (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.cc4
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};
}
};