mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 14:36:16 +02:00
Apply review suggestions
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
parent
e91596eb69
commit
3a1de4c3fe
2 changed files with 4 additions and 4 deletions
|
@ -104,7 +104,7 @@ MixFlakeOptions::MixFlakeOptions()
|
||||||
|
|
||||||
addFlag({
|
addFlag({
|
||||||
.longName = "reference-lock-file",
|
.longName = "reference-lock-file",
|
||||||
.description = "Read the given lock file instead of `flake.lock` within the top-level flake",
|
.description = "Read the given lock file instead of `flake.lock` within the top-level flake.",
|
||||||
.category = category,
|
.category = category,
|
||||||
.labels = {"flake-lock-path"},
|
.labels = {"flake-lock-path"},
|
||||||
.handler = {[&](std::string lockFilePath) {
|
.handler = {[&](std::string lockFilePath) {
|
||||||
|
@ -115,7 +115,7 @@ MixFlakeOptions::MixFlakeOptions()
|
||||||
|
|
||||||
addFlag({
|
addFlag({
|
||||||
.longName = "output-lock-file",
|
.longName = "output-lock-file",
|
||||||
.description = "Write the given lock file instead of `flake.lock` within the top-level flake",
|
.description = "Write the given lock file instead of `flake.lock` within the top-level flake.",
|
||||||
.category = category,
|
.category = category,
|
||||||
.labels = {"flake-lock-path"},
|
.labels = {"flake-lock-path"},
|
||||||
.handler = {[&](std::string lockFilePath) {
|
.handler = {[&](std::string lockFilePath) {
|
||||||
|
|
|
@ -118,10 +118,10 @@ struct LockFlags
|
||||||
bool commitLockFile = false;
|
bool commitLockFile = false;
|
||||||
|
|
||||||
/* The path to a lock file to read instead of the `flake.lock` file in the top-level flake */
|
/* The path to a lock file to read instead of the `flake.lock` file in the top-level flake */
|
||||||
std::optional<std::string> referenceLockFilePath = std::nullopt;
|
std::optional<std::string> referenceLockFilePath;
|
||||||
|
|
||||||
/* The path to a lock file to write to instead of the `flake.lock` file in the top-level flake */
|
/* The path to a lock file to write to instead of the `flake.lock` file in the top-level flake */
|
||||||
std::optional<Path> outputLockFilePath = std::nullopt;
|
std::optional<Path> outputLockFilePath;
|
||||||
|
|
||||||
/* Flake inputs to be overridden. */
|
/* Flake inputs to be overridden. */
|
||||||
std::map<InputPath, FlakeRef> inputOverrides;
|
std::map<InputPath, FlakeRef> inputOverrides;
|
||||||
|
|
Loading…
Reference in a new issue