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/parse/command.hh
4 *
5 * @brief Executable command helpers, argument parsers, etc.
6 *
7 *
8 * -------------------------------------------------------------------------- */
9
10#pragma once
11
12#include "flox/pkgdb/command.hh"
14
15
16/* -------------------------------------------------------------------------- */
17
19namespace flox::parse {
20
21/* -------------------------------------------------------------------------- */
22
25{
26
27private:
28
32
33 std::string format
34 = "manifest";
36public:
37
39
40 [[nodiscard]] command::VerboseParser &
41 getParser()
42 {
43 return this->parser;
44 }
45
50 int
51 run();
52
53
54}; /* End class `DescriptorCommand' */
55
56
57/* -------------------------------------------------------------------------- */
58
61{
62
63private:
64
67 DescriptorCommand cmdDescriptor;
68
69
70public:
71
73
74 [[nodiscard]] command::VerboseParser &
75 getParser()
76 {
77 return this->parser;
78 }
79
84 int
85 run();
86
87
88}; /* End class `ParseCommand' */
89
90
91/* -------------------------------------------------------------------------- */
92
93} // namespace flox::parse
94
95
96/* -------------------------------------------------------------------------- *
97 *
98 *
99 *
100 * ========================================================================== */
Parse a descriptor into a set of flox::pkgdb::PkgQueryArgs.
Definition: command.hh:25
DescriptorCommand()
Definition: command.cc:19
command::VerboseParser parser
Definition: command.hh:29
int run()
Execute the descriptor routine.
Definition: command.cc:39
Parse various constructs.
Definition: command.hh:61
command::VerboseParser parser
Definition: command.hh:65
int run()
Execute the parse routine.
Definition: command.cc:75
A set of user inputs used to set input preferences and query parameters during resolution.
Interfaces used to parse various pkgdb constructs.
Definition: command.cc:15
Executable command helpers, argument parsers, etc.
Add verbosity flags to any parser and modify the global verbosity.
Definition: command.hh:49
A set of user defined requirements describing a package/dependency.
Definition: descriptor.hh:221