| 634 | |
| 635 | template <typename TCommandInfo> |
| 636 | inline TCommandInfo createCommandInfo( |
| 637 | const Option<std::string>& value = None(), |
| 638 | const std::vector<std::string>& arguments = {}) |
| 639 | { |
| 640 | TCommandInfo commandInfo; |
| 641 | if (value.isSome()) { |
| 642 | commandInfo.set_value(value.get()); |
| 643 | } |
| 644 | if (!arguments.empty()) { |
| 645 | commandInfo.set_shell(false); |
| 646 | foreach (const std::string& arg, arguments) { |
| 647 | commandInfo.add_arguments(arg); |
| 648 | } |
| 649 | } |
| 650 | return commandInfo; |
| 651 | } |
| 652 | |
| 653 | |
| 654 | template <typename TExecutorInfo, |
no test coverage detected