mirror of
https://github.com/NixOS/nix
synced 2025-07-04 23:51:47 +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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue