Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
FlakeCommand Class Reference
Inheritance diagram for FlakeCommand:
nix::Args nix::MixFlakeOptions nix::Args nix::EvalCommand nix::StoreCommand nix::MixEvalArgs nix::Command nix::Args nix::MixRepair nix::Args nix::Args CmdFlakeArchive CmdFlakeCheck CmdFlakeClone CmdFlakeLock CmdFlakeMetadata CmdFlakePrefetch CmdFlakeShow CmdFlakeUpdate

Public Member Functions

FlakeRef getFlakeRef ()
 
LockedFlake lockFlake ()
 
std::vector< FlakeRef > getFlakeRefsForCompletion () override
 
- Public Member Functions inherited from nix::EvalCommand
ref< StoregetEvalStore ()
 
ref< EvalStategetEvalState ()
 
- Public Member Functions inherited from nix::StoreCommand
void run () override
 
ref< StoregetStore ()
 
virtual ref< StoregetDstStore ()
 
virtual ref< StorecreateStore ()
 
virtual void run (ref< Store >)=0
 
- Public Member Functions inherited from nix::Command
virtual std::optional< ExperimentalFeatureexperimentalFeature ()
 
virtual Category category ()
 
- Public Member Functions inherited from nix::MixEvalArgs
BindingsgetAutoArgs (EvalState &state)
 

Protected Attributes

std::string flakeUrl = "."
 

Additional Inherited Members

- Public Types inherited from nix::Command
using Category = int
 
- Public Attributes inherited from nix::MixFlakeOptions
flake::LockFlags lockFlags
 
- Public Attributes inherited from nix::EvalCommand
bool startReplOnEvalErrors = false
 
bool ignoreExceptionsDuringTry = false
 
- Public Attributes inherited from nix::MixEvalArgs
LookupPath lookupPath
 
std::optional< std::string > evalStoreUrl
 
- Public Attributes inherited from nix::MixRepair
RepairFlag repair = NoRepair
 
- Static Public Attributes inherited from nix::Command
static constexpr Category catDefault = 0
 
- Static Public Attributes inherited from nix::MixEvalArgs
static constexpr auto category = "Common evaluation options"
 

Member Function Documentation

◆ getFlakeRefsForCompletion()

std::vector< FlakeRef > FlakeCommand::getFlakeRefsForCompletion ( )
inlineoverridevirtual

The completion for some of these flags depends on the flake(s) in question.

This method should be implemented to gather all flakerefs the command is operating with (presumably specified via some other arguments) so that the completions for these flags can use them.

Reimplemented from nix::MixFlakeOptions.


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