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:
parent
9ef6048d78
commit
6470450ab4
7 changed files with 45 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -72,4 +72,3 @@ InputPath parseInputPath(std::string_view s);
|
|||
std::string diffLockFiles(const LockFile & oldLocks, const LockFile & newLocks);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue