summaryrefslogtreecommitdiff
path: root/src/command_manager.hh
diff options
context:
space:
mode:
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;