1
0
Fork 0
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:
Eelco Dolstra 2024-03-01 14:35:27 +01:00
parent d72ee91d07
commit 291b10c607
3 changed files with 22 additions and 1 deletions

View file

@ -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;
};