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

Add completion for --update-input

This commit is contained in:
Eelco Dolstra 2020-06-08 16:20:00 +02:00
parent 9ef6048d78
commit 6470450ab4
7 changed files with 45 additions and 7 deletions

View file

@ -198,7 +198,7 @@ InputPath parseInputPath(std::string_view s)
for (auto & elem : tokenizeString<std::vector<std::string>>(s, "/")) {
if (!std::regex_match(elem, flakeIdRegex))
throw Error("invalid flake input path element '%s'", elem);
throw UsageError("invalid flake input path element '%s'", elem);
path.push_back(elem);
}

View file

@ -72,4 +72,3 @@ InputPath parseInputPath(std::string_view s);
std::string diffLockFiles(const LockFile & oldLocks, const LockFile & newLocks);
}