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

Scrape a flake prefix producing a SQLite3 database with package metadata. More...

#include <command.hh>

Inheritance diagram for flox::pkgdb::ScrapeCommand:
flox::pkgdb::DbPathMixin flox::command::AttrPathMixin flox::command::InlineInputMixin flox::NixState flox::NixStoreMixin

Public Member Functions

command::VerboseParsergetParser ()
 
int run ()
 Execute the scrape routine.
 
- Public Member Functions inherited from flox::pkgdb::DbPathMixin
argparse::Argument & addDatabasePathOption (argparse::ArgumentParser &parser)
 
- Public Member Functions inherited from flox::command::AttrPathMixin
argparse::Argument & addAttrPathArgs (argparse::ArgumentParser &parser)
 Sets the attribute path to be scraped.
 
void fixupAttrPath ()
 Sets fallback attrPath to a package set.
 
- Public Member Functions inherited from flox::command::InlineInputMixin
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.
 

Private Member Functions

void initInput ()
 Initialize input from registryInput.
 

Private Attributes

command::VerboseParser parser
 
std::optional< PkgDbInputinput
 
bool force = false
 

Additional Inherited Members

- Public Attributes inherited from flox::pkgdb::DbPathMixin
std::optional< std::filesystem::path > dbPath
 
- Public Attributes inherited from flox::command::AttrPathMixin
flox::AttrPath attrPath
 
- Protected Member Functions inherited from flox::command::InlineInputMixin
void parseFlakeRef (const std::string &flakeRef)
 Fill registryInput by parsing a flake ref.
 

Detailed Description

Scrape a flake prefix producing a SQLite3 database with package metadata.

Member Function Documentation

◆ run()

int flox::pkgdb::ScrapeCommand::run ( )

Execute the scrape routine.

Returns
EXIT_SUCCESS or EXIT_FAILURE.

Member Data Documentation

◆ force

bool flox::pkgdb::ScrapeCommand::force = false
private

Whether to force re-evaluation.


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