Nix  2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::ReadlineLikeInteracter Class Referencefinal
Inheritance diagram for nix::ReadlineLikeInteracter:
[legend]
Collaboration diagram for nix::ReadlineLikeInteracter:
[legend]

Public Member Functions

 ReadlineLikeInteracter (std::string historyFile)
 
virtual Guard init (detail::ReplCompleterMixin *repl) override
 
virtual bool getLine (std::string &input, ReplPromptType promptType) override
 
virtual void writeHistory ()
 

Additional Inherited Members

- Public Types inherited from nix::ReplInteracter
using Guard = Finally<std::function<void()>>
 

Member Function Documentation

◆ getLine()

bool nix::ReadlineLikeInteracter::getLine ( std::string & input,
ReplPromptType promptType )
overridevirtual

Returns a boolean of whether the interacter got EOF

Implements nix::ReplInteracter.

◆ init()

ReadlineLikeInteracter::Guard nix::ReadlineLikeInteracter::init ( detail::ReplCompleterMixin * repl)
overridevirtual

Implements nix::ReplInteracter.

◆ writeHistory()

void nix::ReadlineLikeInteracter::writeHistory ( )
virtual

Writes the current history to the history file.

This function logs but ignores errors from readline's write_history().


The documentation for this class was generated from the following files: