diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-09-09 17:10:53 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-09-09 17:10:53 +0200 |
| commit | ae76b7dddc2973b809109329aabf15fdd676b7d6 (patch) | |
| tree | 0ad185f833f8efaa8a0c72b75248a9e8882b9863 /src/command_manager.hh | |
| parent | 46565723b1f146af461f93dd45a9c25d43ac553d (diff) | |
Add support for shell script parameters
Now %sh{ ... } can access positional parameters through
standard shell construct, allowing simple handling of variable
parameters.
def command accepts -shell-params flag to use this facility.
Diffstat (limited to 'src/command_manager.hh')
| -rw-r--r-- | src/command_manager.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh index cbc6a2c7..84f764ee 100644 --- a/src/command_manager.hh +++ b/src/command_manager.hh @@ -53,7 +53,8 @@ class CommandManager : public Singleton<CommandManager> { public: void execute(const String& command_line, Context& context, - const EnvVarMap& env_vars = EnvVarMap()); + const memoryview<String>& shell_params = {}, + const EnvVarMap& env_vars = {}); Completions complete(const Context& context, const String& command_line, CharCount cursor_pos); |
