This function is here insetad of in general_api.cpp because it needs extract_commands_from_log_file()
| 2042 | namespace detail { |
| 2043 | //This function is here insetad of in general_api.cpp because it needs extract_commands_from_log_file() |
| 2044 | void ClientImpl::execute_script(const fc::path& script_filename) const { |
| 2045 | if (_cli) { |
| 2046 | if (!fc::exists(script_filename)) |
| 2047 | FC_THROW_EXCEPTION(fc::file_not_found_exception, "Script file not found!"); |
| 2048 | |
| 2049 | string input_commands = extract_commands_from_log_file(script_filename); |
| 2050 | std::stringstream input_stream(input_commands); |
| 2051 | _cli->process_commands(&input_stream); |
| 2052 | _cli->process_commands(&std::cin); |
| 2053 | } |
| 2054 | } |
| 2055 | } // namespace detail |
| 2056 | /////////////////////////////////////////////////////////////////////////////////////////////// |
| 2057 |
nothing calls this directly
no test coverage detected