15 virtual StringSet completePrefix(
const std::string & prefix) = 0;
19enum class ReplPromptType {
27 using Guard =
Finally<std::function<void()>>;
31 virtual bool getLine(std::string & input, ReplPromptType promptType) = 0;
37 std::string historyFile;
39 ReadlineLikeInteracter(std::string historyFile)
40 : historyFile(historyFile)
44 virtual bool getLine(std::string & input, ReplPromptType promptType)
override;
50 virtual ~ReadlineLikeInteracter()
override;
56 AutomationInteracter() =
default;
58 virtual bool getLine(std::string & input, ReplPromptType promptType)
override;
59 virtual ~AutomationInteracter()
override =
default;
virtual bool getLine(std::string &input, ReplPromptType promptType) override
Definition repl-interacter.cc:264
virtual void writeHistory()
Definition repl-interacter.cc:224
virtual bool getLine(std::string &input, ReplPromptType promptType) override
Definition repl-interacter.cc:179
Definition repl-interacter.hh:25
virtual bool getLine(std::string &input, ReplPromptType promptType)=0
Definition repl-interacter.hh:14