16#include <argparse/argparse.hpp>
17#include <nix/flake/flakeref.hh>
51 const std::string & version =
"0.1.0" );
74 this->registryInput.
from
82 addSubtreeArg( argparse::ArgumentParser & parser );
84 addFlakeRefArg( argparse::ArgumentParser & parser );
93 return this->registryInput;
Runtime state containing a nix store connection and a nix evaluator.
Definition: nix-state.hh:123
An exception thrown when a command line argument is invalid.
Definitions of various std::exception children used for throwing errors with nice messages and typed ...
#define FLOX_DEFINE_EXCEPTION(NAME, ERROR_CODE, CATEGORY_MSG)
Generate a class definition with an error code and category message.
Definition: exceptions.hh:206
Executable command helpers, argument parsers, etc.
Definition: command.cc:29
@ EC_INVALID_ARG
Definition: exceptions.hh:37
nix::FlakeRef parseFlakeRef(const std::string &flakeRef)
Parse a flake reference from either a JSON attrset or URI string.
Definition: util.cc:76
std::vector< std::string > AttrPath
A list of key names addressing a location in a nested JSON-like object.
Definition: types.hh:33
Manages a nix runtime state blob with associated helpers.
A set of user inputs used to set input preferences during search and resolution.
Extend a command state blob with an attribute path to "target".
Definition: command.hh:103
void fixupAttrPath()
Sets fallback attrPath to a package set.
Definition: command.cc:127
argparse::Argument & addAttrPathArgs(argparse::ArgumentParser &parser)
Sets the attribute path to be scraped.
Definition: command.cc:115
Add verbosity flags to any parser and modify the global verbosity.
Definition: command.hh:49
Miscellaneous typedefs and aliases.
Miscellaneous helper functions.