diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-08-06 22:02:11 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-08-06 22:02:11 +0200 |
| commit | a38a9c3bf20e13ac47933e337d44943bf157ce35 (patch) | |
| tree | b07859c9212556a59b05d620e34b86092cbe4d76 /src/command_manager.hh | |
| parent | a712dd5bbe8d2b4b433ce90f7d977acf762ad080 (diff) | |
Commands take a mutable context, main_context is gone !
Diffstat (limited to 'src/command_manager.hh')
| -rw-r--r-- | src/command_manager.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh index 298b9056..113bac3e 100644 --- a/src/command_manager.hh +++ b/src/command_manager.hh @@ -24,7 +24,7 @@ struct wrong_argument_count : runtime_error using CommandParameters = memoryview<String>; typedef std::function<void (const CommandParameters&, - const Context& context)> Command; + Context& context)> Command; typedef std::function<CandidateList (const Context& context, const CommandParameters&, @@ -52,7 +52,7 @@ private: class CommandManager : public Singleton<CommandManager> { public: - void execute(const String& command_line, const Context& context, + void execute(const String& command_line, Context& context, const EnvVarMap& env_vars = EnvVarMap()); Completions complete(const Context& context, @@ -70,7 +70,7 @@ public: private: void execute_single_command(const CommandParameters& params, - const Context& context) const; + Context& context) const; struct CommandDescriptor { Command command; |
