| 199 | } |
| 200 | |
| 201 | std::shared_ptr<ChildPipeIOStream> InvokeApp::invoke_app(const std::string& package) |
| 202 | { |
| 203 | LogFunc << VAR(package); |
| 204 | |
| 205 | merge_replacement({ { "{APP_WORKING_FILE}", tempname_ }, { "{PACKAGE_NAME}", package } }); |
| 206 | |
| 207 | auto argv_opt = invoke_app_argv_.gen(argv_replace_); |
| 208 | if (!argv_opt) { |
| 209 | return nullptr; |
| 210 | } |
| 211 | |
| 212 | return std::make_shared<ChildPipeIOStream>(argv_opt->exec, argv_opt->args); |
| 213 | } |
| 214 | |
| 215 | MAA_CTRL_UNIT_NS_END |
no test coverage detected