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

Public Member Functions

void runNix (const std::string &program, OsStrings args, const std::optional< std::string > &input={})
 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 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

Static Public Attributes

static const int envSize = 32768

The documentation for this struct was generated from the following file:
  • /builddir/build/BUILD/nix-2.34.6-build/nix-2.34.6/src/libcmd/repl.cc