Flox Package Database 1
CRUD Operations on Nix Package Metadata
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
flox::command::InlineInputMixin Class Reference

Extend a command's state blob with a single RegistryInput. More...

#include <command.hh>

Inheritance diagram for flox::command::InlineInputMixin:
flox::NixState flox::NixStoreMixin flox::pkgdb::PkgDbMixin< PkgDbReadOnly > flox::pkgdb::PkgDbMixin< T > flox::pkgdb::ScrapeCommand flox::pkgdb::GetCommand

Public Member Functions

argparse::Argument & addSubtreeArg (argparse::ArgumentParser &parser)
 
argparse::Argument & addFlakeRefArg (argparse::ArgumentParser &parser)
 
const RegistryInputgetRegistryInput ()
 Return the parsed RegistryInput.
 
- Public Member Functions inherited from flox::NixState
 NixState ()=default
 Construct NixState using the systems default nix store.
 
 NixState (nix::ref< nix::Store > &store)
 Construct NixState from an existing store connection.
 
nix::ref< nix::EvalState > getState ()
 Lazily open a nix evaluator.
 
- Public Member Functions inherited from flox::NixStoreMixin
 NixStoreMixin (const NixStoreMixin &)=default
 
 NixStoreMixin (NixStoreMixin &&)=default
 
NixStoreMixinoperator= (const NixStoreMixin &)=default
 
NixStoreMixinoperator= (NixStoreMixin &&)=default
 
 NixStoreMixin (const nix::ref< nix::Store > &store)
 Construct NixStoreMixin from an existing store connection.
 
 NixStoreMixin ()
 Construct NixStoreMixin using the systems default nix store.
 
nix::ref< nix::Store > getStore ()
 Lazily open a nix store connection.
 

Protected Member Functions

void parseFlakeRef (const std::string &flakeRef)
 Fill registryInput by parsing a flake ref.
 

Private Attributes

RegistryInput registryInput
 

Detailed Description

Extend a command's state blob with a single RegistryInput.

Member Function Documentation

◆ getRegistryInput()

const RegistryInput & flox::command::InlineInputMixin::getRegistryInput ( )
inline

Return the parsed RegistryInput.

Returns
The parsed RegistryInput.

◆ parseFlakeRef()

void flox::command::InlineInputMixin::parseFlakeRef ( const std::string &  flakeRef)
inlineprotected

Fill registryInput by parsing a flake ref.

Parameters
flakeRefA flake reference as a URL string or JSON attribute set.

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