Apply review suggestions

Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
Linus Heckemann 2023-03-14 12:02:03 +01:00
parent e91596eb69
commit 3a1de4c3fe
2 changed files with 4 additions and 4 deletions

View file

@ -104,7 +104,7 @@ MixFlakeOptions::MixFlakeOptions()
addFlag({
.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,
.labels = {"flake-lock-path"},
.handler = {[&](std::string lockFilePath) {
@ -115,7 +115,7 @@ MixFlakeOptions::MixFlakeOptions()
addFlag({
.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,
.labels = {"flake-lock-path"},
.handler = {[&](std::string lockFilePath) {

View file

@ -118,10 +118,10 @@ struct LockFlags
bool commitLockFile = false;
/* 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 */
std::optional<Path> outputLockFilePath = std::nullopt;
std::optional<Path> outputLockFilePath;
/* Flake inputs to be overridden. */
std::map<InputPath, FlakeRef> inputOverrides;