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;
45 virtual ~ReadlineLikeInteracter()
override;
virtual bool getLine(std::string &input, ReplPromptType promptType) override
Definition repl-interacter.cc:141
Definition repl-interacter.hh:25
virtual bool getLine(std::string &input, ReplPromptType promptType)=0
Definition repl-interacter.hh:14