summaryrefslogtreecommitdiff
path: root/src/command_manager.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-04-21 21:49:25 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-04-21 21:49:25 +0100
commit65c818b85970135f9fff3b71432d2a8f331f8526 (patch)
tree5968b65a04609c3c781e3e45a099e5555c8114a3 /src/command_manager.hh
parent8beda67fae3a57b450139037715122016bde2319 (diff)
Use StringView in CommandManager
Diffstat (limited to 'src/command_manager.hh')
-rw-r--r--src/command_manager.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh
index e379e9cf..59f7a55b 100644
--- a/src/command_manager.hh
+++ b/src/command_manager.hh
@@ -62,14 +62,14 @@ using CommandInfo = std::pair<String, String>;
class CommandManager : public Singleton<CommandManager>
{
public:
- void execute(const String& command_line, Context& context,
+ void execute(StringView command_line, Context& context,
memoryview<String> shell_params = {},
const EnvVarMap& env_vars = EnvVarMap{});
Completions complete(const Context& context, CompletionFlags flags,
- const String& command_line, ByteCount cursor_pos);
+ StringView command_line, ByteCount cursor_pos);
- CommandInfo command_info(const String& command_line) const;
+ CommandInfo command_info(StringView command_line) const;
bool command_defined(const String& command_name) const;