Flox Package Database 1
CRUD Operations on Nix Package Metadata
Loading...
Searching...
No Matches
command.hh
Go to the documentation of this file.
1/* ========================================================================== *
2 *
3 * @file flox/search/command.hh
4 *
5 * @brief Executable command helpers, argument parsers, etc.
6 *
7 *
8 * -------------------------------------------------------------------------- */
9
10#pragma once
11
12#include <functional>
13#include <vector>
14
15#include "flox/flox-flake.hh"
16#include "flox/pkgdb/command.hh"
17#include "flox/pkgdb/input.hh"
18#include "flox/pkgdb/write.hh"
19#include "flox/registry.hh"
21#include "flox/search/params.hh"
22
23
24/* -------------------------------------------------------------------------- */
25
27namespace flox::search {
28
29/* -------------------------------------------------------------------------- */
30
33{
34
35private:
36
44 void
45 addSearchQueryOptions( argparse::ArgumentParser & parser );
46
51 argparse::Argument &
52 addSearchParamArgs( argparse::ArgumentParser & parser );
53
55 void
57
58
59public:
60
62
63 [[nodiscard]] command::VerboseParser &
64 getParser()
65 {
66 return this->parser;
67 }
68
73 int
74 run();
75
76
77}; /* End class `SearchCommand' */
78
79
80/* -------------------------------------------------------------------------- */
81
82} // namespace flox::search
83
84
85/* -------------------------------------------------------------------------- *
86 *
87 *
88 *
89 * ========================================================================== */
Definition: mixins.hh:334
Search flakes for packages satisfying a set of filters.
Definition: command.hh:33
int run()
Execute the search routine.
Definition: command.cc:165
void addSearchQueryOptions(argparse::ArgumentParser &parser)
Add options to allow flags such as --pname PNAME and --version VERSION to be used in setting search p...
Definition: command.cc:61
command::VerboseParser parser
Definition: command.hh:37
void initEnvironment()
Convert params to initialize environment.
Definition: command.cc:124
SearchParams params
Definition: command.hh:38
argparse::Argument & addSearchParamArgs(argparse::ArgumentParser &parser)
Add argument to any parser to construct a flox::search::SearchParams.
Definition: command.cc:43
Defines a convenience wrapper that provides various operations on a flake.
A RegistryInput that opens a PkgDb associated with a flake.
State blobs for flox commands.
Interfaces used to search for packages in flakes.
Definition: command.cc:38
A set of user inputs used to set input preferences and query parameters during search.
Executable command helpers, argument parsers, etc.
A set of user inputs used to set input preferences during search and resolution.
Add verbosity flags to any parser and modify the global verbosity.
Definition: command.hh:49
Definition: params.hh:109
Interfaces for writing to a SQLite3 package set database.