mirror of
https://github.com/NixOS/nix
synced 2025-07-01 04:18:00 +02:00
refactor: repl prompts are now the job of the interacter
This commit is contained in:
parent
70a6ce139b
commit
ea31b8a117
3 changed files with 18 additions and 7 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue