Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::NixRepl Struct Reference
Inheritance diagram for nix::NixRepl:
nix::AbstractNixRepl nix::detail::ReplCompleterMixin gc

Public Member Functions

void runNix (const std::string &program, OsStrings args)
 NixRepl (const LookupPath &lookupPath, ref< EvalState > state, fun< AnnotatedValues()> getValues, RunNix *runNix)
ReplExitStatus mainLoop () override
void initEnv () override
virtual StringSet completePrefix (const std::string &prefix) override
StorePath getDerivationPath (Value &v)
ProcessLineResult processLine (std::string line)
void loadFile (const std::filesystem::path &path)
void loadFlake (const std::string &flakeRef)
void loadFiles ()
void loadFlakes ()
void reloadFilesAndFlakes ()
void showLastLoaded ()
void addAttrsToScope (Value &attrs)
void addVarToScope (const Symbol name, Value &v)
Expr * parseString (std::string s)
ExprAttrs * parseReplBindings (std::string s)
void evalString (std::string s, Value &v)
void loadDebugTraceEnv (DebugTrace &dt)
void printValue (std::ostream &str, Value &v, unsigned int maxDepth=std::numeric_limits< unsigned int >::max())
Public Member Functions inherited from nix::AbstractNixRepl
 AbstractNixRepl (ref< EvalState > state)

Public Attributes

size_t debugTraceIndex
std::list< std::filesystem::path > loadedFiles
Strings loadedFlakes
fun< AnnotatedValues()> getValues
std::shared_ptr< StaticEnv > staticEnv
std::optional< Value > lastLoaded
Env * env
int displ
StringSet varNames
RunNix * runNixPtr
std::unique_ptr< ReplInteracter > interacter
Public Attributes inherited from nix::AbstractNixRepl
ref< EvalState > state
const Bindings * autoArgs

Static Public Attributes

static const int envSize = 32768

Additional Inherited Members

Public Types inherited from nix::AbstractNixRepl
typedef std::vector< std::pair< Value *, std::string > > AnnotatedValues
using RunNix = void(const std::string & programName, OsStrings args)
Static Public Member Functions inherited from nix::AbstractNixRepl
static std::unique_ptr< AbstractNixRepl > create (const LookupPath &lookupPath, ref< EvalState > state, fun< AnnotatedValues()> getValues, RunNix *runNix=nullptr)
static ReplExitStatus runSimple (ref< EvalState > evalState, const ValMap &extraEnv)

Member Function Documentation

◆ completePrefix()

StringSet nix::NixRepl::completePrefix ( const std::string & prefix)
overridevirtual

◆ initEnv()

void nix::NixRepl::initEnv ( )
overridevirtual

Implements nix::AbstractNixRepl.

◆ mainLoop()

ReplExitStatus nix::NixRepl::mainLoop ( )
overridevirtual

Implements nix::AbstractNixRepl.


The documentation for this struct was generated from the following file:
  • libcmd/repl.cc