Previously all includes were anchored in one global mess of header files. This moves the includes into filesystem "namespaces" (if you will) for each sub-package of Nix. Note: This commit does not introduce the relevant build system changes.
27 lines
500 B
C++
27 lines
500 B
C++
#pragma once
|
|
|
|
#include "libutil/args.hh"
|
|
|
|
namespace nix {
|
|
|
|
struct MixCommonArgs : virtual Args {
|
|
std::string programName;
|
|
MixCommonArgs(const std::string& programName);
|
|
};
|
|
|
|
struct MixDryRun : virtual Args {
|
|
bool dryRun = false;
|
|
|
|
MixDryRun() {
|
|
mkFlag(0, "dry-run", "show what this command would do without doing it",
|
|
&dryRun);
|
|
}
|
|
};
|
|
|
|
struct MixJSON : virtual Args {
|
|
bool json = false;
|
|
|
|
MixJSON() { mkFlag(0, "json", "produce JSON output", &json); }
|
|
};
|
|
|
|
} // namespace nix
|