|
myshell 2.0.0
|
Top-level command structure. More...
#include <msh_command.h>
Public Member Functions | |
| int | execute (int in=STDIN_FILENO, int out=STDOUT_FILENO) |
| Execute the command. | |
| void | set_flags (int flag) |
Public Attributes | |
| std::variant< simple_command_ptr, connection_command_ptr > | cmd |
| int | flags = 0 |
Top-level command structure.
Holds std::variant of simple_command_ptr and connection_command_ptr.
On execute() the execution is delegated to the appropriate command using msh_exec_internal().
|
inline |
Execute the command.
| in | File descriptor to use as stdin. |
| out | File descriptor to use as stdout |