mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
Add --arg-from-file for reading a string from a file
This commit is contained in:
parent
d72ee91d07
commit
291b10c607
3 changed files with 22 additions and 1 deletions
|
@ -28,8 +28,9 @@ struct MixEvalArgs : virtual Args, virtual MixRepair
|
|||
private:
|
||||
struct AutoArgExpr { std::string expr; };
|
||||
struct AutoArgString { std::string s; };
|
||||
struct AutoArgFile { std::filesystem::path path; };
|
||||
|
||||
using AutoArg = std::variant<AutoArgExpr, AutoArgString>;
|
||||
using AutoArg = std::variant<AutoArgExpr, AutoArgString, AutoArgFile>;
|
||||
|
||||
std::map<std::string, AutoArg> autoArgs;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue