Flox Package Database 1
CRUD Operations on Nix Package Metadata
|
Scrape a flake prefix producing a SQLite3 database with package metadata. More...
#include <command.hh>
Public Member Functions | |
command::VerboseParser & | getParser () |
int | run () |
Execute the scrape routine. | |
![]() | |
argparse::Argument & | addDatabasePathOption (argparse::ArgumentParser &parser) |
![]() | |
argparse::Argument & | addAttrPathArgs (argparse::ArgumentParser &parser) |
Sets the attribute path to be scraped. | |
void | fixupAttrPath () |
Sets fallback attrPath to a package set. | |
![]() | |
argparse::Argument & | addSubtreeArg (argparse::ArgumentParser &parser) |
argparse::Argument & | addFlakeRefArg (argparse::ArgumentParser &parser) |
const RegistryInput & | getRegistryInput () |
Return the parsed RegistryInput. | |
![]() | |
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. | |
![]() | |
NixStoreMixin (const NixStoreMixin &)=default | |
NixStoreMixin (NixStoreMixin &&)=default | |
NixStoreMixin & | operator= (const NixStoreMixin &)=default |
NixStoreMixin & | operator= (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< PkgDbInput > | input |
bool | force = false |
Additional Inherited Members | |
![]() | |
std::optional< std::filesystem::path > | dbPath |
![]() | |
flox::AttrPath | attrPath |
![]() | |
void | parseFlakeRef (const std::string &flakeRef) |
Fill registryInput by parsing a flake ref. | |
Scrape a flake prefix producing a SQLite3 database with package metadata.
int flox::pkgdb::ScrapeCommand::run | ( | ) |
Execute the scrape
routine.
EXIT_SUCCESS
or EXIT_FAILURE
.
|
private |
Whether to force re-evaluation.