Nix 2.26.3
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 (Path program, const Strings &args, const std::optional< std::string > &input={})
 
 NixRepl (const LookupPath &lookupPath, nix::ref< Store > store, ref< EvalState > state, std::function< 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 Path &path)
 
void loadFlake (const std::string &flakeRef)
 
void loadFiles ()
 
void reloadFiles ()
 
void addAttrsToScope (Value &attrs)
 
void addVarToScope (const Symbol name, Value &v)
 
ExprparseString (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
 
Strings loadedFiles
 
std::function< AnnotatedValues()> getValues
 
std::shared_ptr< StaticEnvstaticEnv
 
Envenv
 
int displ
 
StringSet varNames
 
RunNix * runNixPtr
 
std::unique_ptr< ReplInteracterinteracter
 
- Public Attributes inherited from nix::AbstractNixRepl
ref< EvalStatestate
 
BindingsautoArgs
 

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(Path program, const Strings & args, const std::optional<std::string> & input)
 
- Static Public Member Functions inherited from nix::AbstractNixRepl
static std::unique_ptr< AbstractNixReplcreate (const LookupPath &lookupPath, nix::ref< Store > store, ref< EvalState > state, std::function< 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: