29 #ifndef __UTILS_COMMAND_PARSER_H__ 30 #define __UTILS_COMMAND_PARSER_H__ 68 void operator()(
Command* command);
82 [[nodiscard]]
static std::unique_ptr<Command, CommandDeleter>
83 parse(
const std::string& commandToParse,
char delimiter =
' ');
A helper class to parse a string representing a command so as to create a real command that can be pa...
Definition: Parser.h:46
Definition: Executor.h:37
Represents a shell command to execute.
Definition: Parser.h:56
int argc
Definition: Parser.h:58
char * pathname
Definition: Parser.h:57
static std::unique_ptr< Command, CommandDeleter > parse(const std::string &commandToParse, char delimiter=' ')
Parse the given string to create a command.
Custom deleter associated to the created command.
Definition: Parser.h:67
char ** argv
Definition: Parser.h:59