diff options
author | jade <lix@jade.fyi> | 2024-03-11 15:12:09 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit@lix> | 2024-03-11 15:12:09 -0600 |
commit | b06a39211460033305c5264a456161c75ed88425 (patch) | |
tree | 15202d692f95b72c0884df23f3c9840618cd2ab7 /src/libcmd/repl-interacter.hh | |
parent | dd05106d1cb94485cb6c6bd06a09b4ebbcc67435 (diff) | |
parent | 1758a6ef25cb74090642dd5e7a384d210041875e (diff) |
Merge "refactor: repl prompts are now the job of the interacter" into main
Diffstat (limited to 'src/libcmd/repl-interacter.hh')
-rw-r--r-- | src/libcmd/repl-interacter.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcmd/repl-interacter.hh b/src/libcmd/repl-interacter.hh index e549bab36..cc70efd07 100644 --- a/src/libcmd/repl-interacter.hh +++ b/src/libcmd/repl-interacter.hh @@ -28,7 +28,7 @@ public: virtual Guard init(detail::ReplCompleterMixin * repl) = 0; /** Returns a boolean of whether the interacter got EOF */ - virtual bool getLine(std::string & input, const std::string & prompt) = 0; + virtual bool getLine(std::string & input, ReplPromptType promptType) = 0; virtual ~ReplInteracter(){}; }; @@ -41,7 +41,7 @@ public: { } virtual Guard init(detail::ReplCompleterMixin * repl) override; - virtual bool getLine(std::string & input, const std::string & prompt) override; + virtual bool getLine(std::string & input, ReplPromptType promptType) override; virtual ~ReadlineLikeInteracter() override; }; |