aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/args.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-11-06 10:44:21 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-11-06 10:56:33 +0100
commit88c452d1603eb809358e509d5dca9c40c512cd20 (patch)
tree41d3162e57fbbd0d5e10e35eed84d4b2b5e9e936 /src/libutil/args.hh
parent9ff4060d2691c1a7dc2f8be65d117f43c3335714 (diff)
parent35732a95bcdc0a4b4492845205e6283fcc88fd0d (diff)
Merge remote-tracking branch 'origin/master' into flakes
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 b960a55a8..59d427ee6 100644
--- a/src/libutil/args.hh
+++ b/src/libutil/args.hh
@@ -5,6 +5,7 @@
#include <memory>
#include "util.hh"
+#include "nixexpr.hh"
namespace nix {
@@ -241,6 +242,9 @@ public:
Strings argvToStrings(int argc, char * * argv);
+/* Helper function to generate args that invoke $EDITOR on filename:lineno */
+Strings editorFor(Pos pos);
+
/* Helper function for rendering argument labels. */
std::string renderLabels(const Strings & labels);