forked from lix-project/lix
eba610956b
This unclutters the per-command options a bit by moving out some global options.
30 lines
464 B
C++
30 lines
464 B
C++
#pragma once
|
|
|
|
#include "args.hh"
|
|
|
|
namespace nix {
|
|
|
|
class Store;
|
|
class EvalState;
|
|
class Bindings;
|
|
|
|
struct MixEvalArgs : virtual Args
|
|
{
|
|
static constexpr auto category = "Common evaluation options";
|
|
|
|
MixEvalArgs();
|
|
|
|
Bindings * getAutoArgs(EvalState & state);
|
|
|
|
Strings searchPath;
|
|
|
|
std::optional<std::string> evalStoreUrl;
|
|
|
|
private:
|
|
std::map<std::string, std::string> autoArgs;
|
|
};
|
|
|
|
Path lookupFileArg(EvalState & state, std::string_view s);
|
|
|
|
}
|