aboutsummaryrefslogtreecommitdiff
path: root/src/nix/flake.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-06-08 16:20:00 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-06-08 16:20:00 +0200
commit6470450ab48196668099eeca2f171fec110d647b (patch)
tree8ac719d47c3442f3f5b0b640d8b09b1a22a94c77 /src/nix/flake.cc
parent9ef6048d784a298f384affdec941b5b38c61346c (diff)
Add completion for --update-input
Diffstat (limited to 'src/nix/flake.cc')
-rw-r--r--src/nix/flake.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index 33bcc9604..57ce996cd 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -20,7 +20,7 @@
using namespace nix;
using namespace nix::flake;
-class FlakeCommand : virtual Args, public EvalCommand, public MixFlakeOptions
+class FlakeCommand : virtual Args, public MixFlakeOptions
{
std::string flakeUrl = ".";
@@ -53,6 +53,11 @@ public:
{
return flake::lockFlake(*getEvalState(), getFlakeRef(), lockFlags);
}
+
+ std::optional<FlakeRef> getFlakeRefForCompletion() override
+ {
+ return getFlakeRef();
+ }
};
static void printFlakeInfo(const Store & store, const Flake & flake)