aboutsummaryrefslogtreecommitdiff
path: root/src/nix/command.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/command.hh')
-rw-r--r--src/nix/command.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nix/command.hh b/src/nix/command.hh
index fad404c73..26c15e646 100644
--- a/src/nix/command.hh
+++ b/src/nix/command.hh
@@ -10,6 +10,7 @@ extern std::string programPath;
struct Value;
class Bindings;
class EvalState;
+struct Pos;
/* A command is an argument parser that can be executed by calling its
run() method. */
@@ -216,4 +217,8 @@ PathSet toDerivations(ref<Store> store,
std::vector<std::shared_ptr<Installable>> installables,
bool useDeriver = false);
+/* Helper function to generate args that invoke $EDITOR on
+ filename:lineno. */
+Strings editorFor(const Pos & pos);
+
}