aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/args.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-05-10 20:32:21 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-05-10 20:32:21 +0200
commit91ddee6bf045b1c6144d14233abdb96127186ec3 (patch)
tree5c75576b453c177c3a43a422db1323cb7452b7f8 /src/libutil/args.hh
parent14a3a62bfca6c572b9a415cfa80cdbd7ad4326b3 (diff)
nix: Implement basic bash completion
Diffstat (limited to 'src/libutil/args.hh')
-rw-r--r--src/libutil/args.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/args.hh b/src/libutil/args.hh
index 1932e6a8a..ae2875e72 100644
--- a/src/libutil/args.hh
+++ b/src/libutil/args.hh
@@ -256,4 +256,8 @@ typedef std::vector<std::pair<std::string, std::string>> Table2;
void printTable(std::ostream & out, const Table2 & table);
+extern std::shared_ptr<std::set<std::string>> completions;
+
+std::optional<std::string> needsCompletion(std::string_view s);
+
}