mirror of
https://github.com/NixOS/nix.git
synced 2025-11-20 17:29:36 +01:00
Factor out --no-check-sigs
This commit is contained in:
parent
0503a862ef
commit
139df77440
3 changed files with 16 additions and 17 deletions
|
|
@ -350,6 +350,20 @@ struct MixEnvironment : virtual Args
|
|||
void setEnviron();
|
||||
};
|
||||
|
||||
struct MixNoCheckSigs : virtual Args
|
||||
{
|
||||
CheckSigsFlag checkSigs = CheckSigs;
|
||||
|
||||
MixNoCheckSigs()
|
||||
{
|
||||
addFlag({
|
||||
.longName = "no-check-sigs",
|
||||
.description = "Do not require that paths are signed by trusted keys.",
|
||||
.handler = {&checkSigs, NoCheckSigs},
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
void completeFlakeInputAttrPath(
|
||||
AddCompletions & completions,
|
||||
ref<EvalState> evalState,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue