summaryrefslogtreecommitdiff
path: root/src/command_manager.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-05-29 05:42:26 +0000
committerMaxime Coste <frrrwww@gmail.com>2012-05-29 05:42:26 +0000
commit96c440fcaa72113e974b4bf467f708a64e0b0ac4 (patch)
treeea75f9a8cd727bb431a83aecf827035e2c3030b7 /src/command_manager.hh
parent8fedbbf07bdb972a82af2923cbe914439389c808 (diff)
CommandManager::execute can take an optional EnvVarMap argument which is used for shell evaluation
Diffstat (limited to 'src/command_manager.hh')
-rw-r--r--src/command_manager.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh
index d6923ce2..54d67b80 100644
--- a/src/command_manager.hh
+++ b/src/command_manager.hh
@@ -9,6 +9,7 @@
#include "utils.hh"
#include "completion.hh"
#include "memoryview.hh"
+#include "shell_manager.hh"
namespace Kakoune
{
@@ -54,8 +55,10 @@ public:
DeferredShellEval = 2,
};
- void execute(const String& command_line, const Context& context);
- void execute(const CommandParameters& params, const Context& context);
+ void execute(const String& command_line, const Context& context,
+ const EnvVarMap& env_vars = EnvVarMap());
+ void execute(const CommandParameters& params, const Context& context,
+ const EnvVarMap& env_vars = EnvVarMap());
Completions complete(const String& command_line, size_t cursor_pos);