mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
Make --read-only
a separate mixin
It is independent of SourceExprCommand, which is about parsing installables, except for the fact that parsing installables is one of the many things influenced by read-only mode.
This commit is contained in:
parent
924ef6761b
commit
0258ac9c2a
3 changed files with 23 additions and 22 deletions
|
@ -11,13 +11,13 @@
|
|||
|
||||
using namespace nix;
|
||||
|
||||
struct CmdEval : MixJSON, InstallableCommand
|
||||
struct CmdEval : MixJSON, InstallableCommand, MixReadOnlyOption
|
||||
{
|
||||
bool raw = false;
|
||||
std::optional<std::string> apply;
|
||||
std::optional<Path> writeTo;
|
||||
|
||||
CmdEval() : InstallableCommand(true /* supportReadOnlyMode */)
|
||||
CmdEval() : InstallableCommand()
|
||||
{
|
||||
addFlag({
|
||||
.longName = "raw",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue