Flox Package Database 1
CRUD Operations on Nix Package Metadata
Loading...
Searching...
No Matches
repl.hh
Go to the documentation of this file.
1/* ========================================================================== *
2 *
3 * @file flox/repl.hh
4 *
5 * @brief Executable command helpers, argument parsers, etc.
6 *
7 *
8 * -------------------------------------------------------------------------- */
9
10#pragma once
11
12#include <argparse/argparse.hpp>
13
14#include "flox/core/command.hh"
16
17
18/* -------------------------------------------------------------------------- */
19
20namespace flox {
21
22/* -------------------------------------------------------------------------- */
23
26{
27
28private:
29
31
32
33public:
34
36
37 [[nodiscard]] command::VerboseParser &
38 getParser()
39 {
40 return this->parser;
41 }
42
47 int
48 run();
49
50
51}; /* End class `ReplCommand' */
52
53
54/* -------------------------------------------------------------------------- */
55
56} // namespace flox
57
58
59/* -------------------------------------------------------------------------- *
60 *
61 *
62 *
63 * ========================================================================== */
Runtime state containing a nix store connection and a nix evaluator.
Definition: nix-state.hh:123
Run an interactive nix REPL with extensions.
Definition: repl.hh:26
int run()
Execute the repl routine.
Definition: repl.cc:31
Executable command helpers, argument parsers, etc.
Interfaces for use by flox.
Definition: command.cc:29
Manages a nix runtime state blob with associated helpers.
Add verbosity flags to any parser and modify the global verbosity.
Definition: command.hh:49