1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 16:51:15 +02:00

nix eval: Add option read-only

This commit is contained in:
Erik Arvstedt 2022-03-26 11:32:38 +01:00
parent 679b3b32c9
commit 16860a0328
3 changed files with 23 additions and 5 deletions

View file

@ -16,7 +16,7 @@ struct CmdEval : MixJSON, InstallableCommand
std::optional<std::string> apply;
std::optional<Path> writeTo;
CmdEval()
CmdEval() : InstallableCommand(true /* supportReadOnlyMode */)
{
addFlag({
.longName = "raw",