MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / execute_script

Method execute_script

src/Chain/libraries/client/Client.cpp:2044–2054  ·  view source on GitHub ↗

This function is here insetad of in general_api.cpp because it needs extract_commands_from_log_file()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

existsFunction · 0.85
process_commandsMethod · 0.80

Tested by

no test coverage detected