Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
shlex.hh
Go to the documentation of this file.
1#pragma once
3
4#include <regex>
5#include <string>
6#include <vector>
7
9
10namespace nix {
11
12class ShlexError : public Error
13{
14public:
15 const std::string input;
16
17 ShlexError(const std::string input)
18 : Error("Failed to parse shell arguments (unterminated quote?): %1%", input)
19 , input(input)
20 {
21 }
22};
23
29std::vector<std::string> shell_split(const std::string & input);
30
31} // namespace nix
This file defines two main structs/classes used in nix error handling.